From 6371a47191385a55cc07c83d1ded80bdd8cdd2de Mon Sep 17 00:00:00 2001 From: shinework Date: Tue, 11 Feb 2020 23:36:58 +0100 Subject: [PATCH] Fix icon button props --- .../inspector/panels/components/IconButtonPanel.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/inspector/panels/components/IconButtonPanel.tsx b/src/components/inspector/panels/components/IconButtonPanel.tsx index 734fd56c70..68602ae44a 100644 --- a/src/components/inspector/panels/components/IconButtonPanel.tsx +++ b/src/components/inspector/panels/components/IconButtonPanel.tsx @@ -15,7 +15,7 @@ const IconButtonPanel = () => { const { setValueFromEvent } = useForm() const theme = useTheme() - const name = usePropsSelector('name') + const icon = usePropsSelector('icon') const size = usePropsSelector('size') const variant = usePropsSelector('variant') @@ -23,12 +23,12 @@ const IconButtonPanel = () => { <> {Object.keys(theme.icons) - .filter(icon => icon.includes(name) || !name) + .filter(icon => icon.includes(icon) || !icon) .map((icon, index) => (