Skip to content

Commit

Permalink
docs: update shadnui switch example setup (#721)
Browse files Browse the repository at this point in the history
  • Loading branch information
reborn2135 authored Aug 8, 2024
1 parent 6b98c07 commit a5e5e65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/shadcn-ui/src/components/conform/Switch.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export function SwitchConform({ meta }: { meta: FieldMetadata<boolean> }) {
/>
<Switch
ref={switchRef}
checked={meta.value === 'on'}
checked={control.value === 'on'}
onCheckedChange={(checked) => {
control.change(checked ? 'on' : '');
}}
Expand Down

0 comments on commit a5e5e65

Please sign in to comment.