Skip to content

Commit

Permalink
fix chips playground demo at the same time
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari committed Mar 25, 2020
1 parent cb17cac commit 30277fb
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions docs/src/pages/components/chips/ChipsPlayground.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,20 +24,21 @@ const styles = (theme) => ({

function ChipsPlayground(props) {
const { classes } = props;
const [{ color, onDelete, avatar, icon, variant, size }, setState] = React.useState({
const [state, setState] = React.useState({
color: 'default',
onDelete: 'none',
avatar: 'none',
icon: 'none',
variant: 'default',
size: 'medium',
});
const { color, onDelete, avatar, icon, variant, size } = state;

const handleChange = (event) => {
setState((state) => ({
setState({
...state,
[event.target.name]: event.target.value,
}));
});
};

const handleDeleteExample = () => {
Expand Down

0 comments on commit 30277fb

Please sign in to comment.