Skip to content

Commit c217f32

Browse files
committed
link angleRad for the all wheel story
1 parent 6a7ce4e commit c217f32

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/frontend/components/Input/InputSteer/InputSteer.stories.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,10 @@ export const Primary: Story = {
2424
};
2525

2626
export const AllWheels: Story = {
27-
render: () => {
27+
args: {
28+
angleRad: 0,
29+
},
30+
render: ({ angleRad }) => {
2831
const wheelStyles = ['default', 'formula', 'lmp', 'nascar', 'ushape'] as const;
2932
const colors = ['light', 'dark'] as const;
3033

@@ -41,7 +44,7 @@ export const AllWheels: Story = {
4144
<div className="capitalize text-sm font-medium">{style}</div>
4245
<div className="flex justify-center">
4346
<InputSteer
44-
angleRad={0}
47+
angleRad={angleRad}
4548
wheelStyle={style}
4649
wheelColor={color}
4750
/>

0 commit comments

Comments
 (0)