diff --git a/apps/design-system/registry/default/example/date-picker-form.tsx b/apps/design-system/registry/default/example/date-picker-form.tsx index 52aa14fc345..129fc91412f 100644 --- a/apps/design-system/registry/default/example/date-picker-form.tsx +++ b/apps/design-system/registry/default/example/date-picker-form.tsx @@ -8,6 +8,7 @@ import { Button, Calendar, Form, + FormControl, FormDescription, FormField, FormItem, @@ -53,11 +54,13 @@ export default function DatePickerForm() { Date of birth - - - {field.value ? format(field.value, 'PPP') : 'Pick a date'} - - + + + + {field.value ? format(field.value, 'PPP') : 'Pick a date'} + + + - + + + public @@ -675,23 +677,23 @@ export default function FormPatternsPageLayout() { label="Date Picker" description="Date selection with calendar popover" > - - + + {field.value ? format(field.value, 'PPP') : 'Pick a date'} - - - - - + + + + + )} /> diff --git a/apps/design-system/registry/default/example/form-patterns-sidepanel.tsx b/apps/design-system/registry/default/example/form-patterns-sidepanel.tsx index c3e734a6d7e..090dce8da98 100644 --- a/apps/design-system/registry/default/example/form-patterns-sidepanel.tsx +++ b/apps/design-system/registry/default/example/form-patterns-sidepanel.tsx @@ -610,14 +610,16 @@ export default function FormPatternsSidePanel() { size="small" className="w-full" > - + + + public @@ -677,23 +679,23 @@ export default function FormPatternsSidePanel() { label="Date Picker" description="Date selection with calendar popover" > - - + + {field.value ? format(field.value, 'PPP') : 'Pick a date'} - - - - - + + + + + )} /> diff --git a/apps/studio/components/interfaces/Account/AccessTokens/Scoped/Form/TokenDetails.tsx b/apps/studio/components/interfaces/Account/AccessTokens/Scoped/Form/TokenDetails.tsx index 7ef6accc758..48d2897c301 100644 --- a/apps/studio/components/interfaces/Account/AccessTokens/Scoped/Form/TokenDetails.tsx +++ b/apps/studio/components/interfaces/Account/AccessTokens/Scoped/Form/TokenDetails.tsx @@ -72,25 +72,25 @@ export const TokenDetails = ({ control, setValue }: TokenDetailsProps) => { name="expiresAt" control={control} render={({ field }) => ( - +
- - + + - - {EXPIRY_OPTIONS.map((option) => ( - - - {option.label} - {option.recommended && Recommended} - - - ))} - - - + + + {EXPIRY_OPTIONS.map((option) => ( + + + {option.label} + {option.recommended && Recommended} + + + ))} + + {field.value === 'custom' && ( ({ control={form.control} name={name} render={({ field }) => ( - + { field.onChange(value) diff --git a/apps/studio/components/interfaces/Auth/AuthProvidersForm/FormField.tsx b/apps/studio/components/interfaces/Auth/AuthProvidersForm/FormField.tsx index f6520fc841d..8f480f2d05d 100644 --- a/apps/studio/components/interfaces/Auth/AuthProvidersForm/FormField.tsx +++ b/apps/studio/components/interfaces/Auth/AuthProvidersForm/FormField.tsx @@ -118,8 +118,8 @@ const FormField = ({ ) : null } > - - + +