Skip to content

Commit

Permalink
Fix icon button props
Browse files Browse the repository at this point in the history
  • Loading branch information
baptadn committed Feb 11, 2020
1 parent 0faa7fd commit 6371a47
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,20 @@ const IconButtonPanel = () => {
const { setValueFromEvent } = useForm()
const theme = useTheme()

const name = usePropsSelector('name')
const icon = usePropsSelector('icon')
const size = usePropsSelector('size')
const variant = usePropsSelector('variant')

return (
<>
<FormControl label="Icon" htmlFor="icon">
<InputSuggestion
value={name}
value={icon}
handleChange={setValueFromEvent}
name="icon"
>
{Object.keys(theme.icons)
.filter(icon => icon.includes(name) || !name)
.filter(icon => icon.includes(icon) || !icon)
.map((icon, index) => (
<ComboboxOption key={index} value={icon}>
<Icon name={icon as Icons} /> <ComboboxOptionText />
Expand Down

0 comments on commit 6371a47

Please sign in to comment.