0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-31 19:39:07 -05:00

🐛 fix icon id prop in storybook

This commit is contained in:
Juanfran 2025-01-13 10:23:42 +01:00
parent 307834b276
commit a8105f4a0c
2 changed files with 8 additions and 8 deletions

View file

@ -9,7 +9,7 @@ export default {
title: "Foundations/Assets/Icon",
component: Components.Icon,
argTypes: {
id: {
iconId: {
options: icons,
control: { type: "select" },
},
@ -37,10 +37,10 @@ export const All = {
gap: "0.5rem",
}}
>
<Icon id={iconId} size={size} />
<Icon iconId={iconId} size={size} />
<code
style={{
"font-family": "monospace",
fontFamily: "monospace",
color: "var(--color-foreground-secondary)",
}}
>
@ -55,14 +55,14 @@ export const All = {
size: "m",
},
parameters: {
controls: { exclude: ["id", "size"] },
controls: { exclude: ["iconId", "size"] },
backgrounds: { disable: true },
},
};
export const Default = {
args: {
id: "pin",
iconId: "pin",
},
parameters: {
controls: { exclude: ["size"] },
@ -71,7 +71,7 @@ export const Default = {
export const CustomSize = {
args: {
id: "pin",
iconId: "pin",
size: "m",
},
};

View file

@ -8,7 +8,7 @@ export default {
title: "Foundations/Utilities/TokenStatus",
component: TokenStatusIcon,
argTypes: {
id: {
iconId: {
options: tokenStatus,
control: { type: "select" },
},
@ -18,6 +18,6 @@ export default {
export const Default = {
args: {
id: "token-status-full",
iconId: "token-status-full",
},
};