Skip to content

Commit

Permalink
chore: fix TypeScript errors
Browse files Browse the repository at this point in the history
  • Loading branch information
joshblack committed Jul 2, 2024
1 parent 1241a88 commit 0cdec4b
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion packages/react/src/ProgressBar/ProgressBar.figma.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,6 @@ figma.connect(
gray: '--data-gray-color',
}),
},
example: ({color}) => <ProgressBarItem sx={color} />,
example: ({color}) => <ProgressBarItem sx={{color}} />,
},
)
2 changes: 1 addition & 1 deletion packages/react/src/TextInput/TextInput.figma.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ figma.connect(
value={textInput.label}
trailingAction={trailingAction}
leadingVisual={leadingVisual}
readonly={readonly}
readOnly={readonly}
/>
{validation}
{caption}
Expand Down
14 changes: 9 additions & 5 deletions packages/react/src/UnderlineNav/UnderlineNav.figma.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,22 +28,26 @@ figma.connect(
props: {
label: figma.textContent('Label'),
current: figma.enum('state', {
selected: '"page"',
selected: 'page',
default: undefined,
hover: '"false"',
focus: '"false"',
hover: 'false',
focus: 'false',
}),
counter: figma.boolean('counter?', {
false: undefined,
true: figma.children('CounterLabel'),
true: figma.string('CounterLabel'),
}),
leadingVisual: figma.boolean('leadingIcon?', {
false: undefined,
true: figma.children('Icon'),
}),
},
example: ({label, current, counter, leadingVisual}) => (
<UnderlineNav.Item aria-current={current} counter={counter} icon={leadingVisual}>
<UnderlineNav.Item
aria-current={current}
counter={counter}
icon={leadingVisual ? () => leadingVisual : undefined}
>
{label}
</UnderlineNav.Item>
),
Expand Down

0 comments on commit 0cdec4b

Please sign in to comment.