mirror of
https://github.com/supabase/supabase.git
synced 2026-10-10 03:45:06 +03:00
Sorted all imports in all packages, `cms`, `design-system` and `ui-library` apps by running `pnpm format` on them. All changes in this PR are done by the script.
25 lines
659 B
TypeScript
25 lines
659 B
TypeScript
import { Switch } from 'ui'
|
|
import {
|
|
Field,
|
|
FieldContent,
|
|
FieldDescription,
|
|
FieldLabel,
|
|
} from 'ui/src/components/shadcn/ui/field'
|
|
|
|
export default function FieldSwitch() {
|
|
return (
|
|
<div className="w-full max-w-md">
|
|
<Field orientation="horizontal">
|
|
<FieldContent>
|
|
<FieldLabel htmlFor="2fa">Multi-factor authentication</FieldLabel>
|
|
<FieldDescription>
|
|
Enable multi-factor authentication. If you do not have a two-factor device, you can use
|
|
a one-time code sent to your email.
|
|
</FieldDescription>
|
|
</FieldContent>
|
|
<Switch id="2fa" />
|
|
</Field>
|
|
</div>
|
|
)
|
|
}
|