Skip to content

Commit bcce87b

Browse files
committed
set custom displayName for the switch component to fix storybook issue
1 parent 3492cfa commit bcce87b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/ui/switch.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,6 @@ const Switch = React.forwardRef<
2828
</SwitchPrimitives.Root>
2929
)
3030
})
31-
Switch.displayName = SwitchPrimitives.Root.displayName
31+
Switch.displayName = "Switch"
3232

3333
export default Switch

0 commit comments

Comments
 (0)