Skip to content

Commit

Permalink
feat: Made React default option
Browse files Browse the repository at this point in the history
  • Loading branch information
chavda-bhavik committed Oct 14, 2024
1 parent a3ebea7 commit 71dacbe
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions apps/web/components/imports/forms/CreateImportForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@ export function CreateImportForm({ onSubmit }: CreateImportFormProps) {
handleSubmit,
control,
formState: { errors },
} = useForm<IUpdateTemplateData>({});
} = useForm<IUpdateTemplateData>({
defaultValues: {
integration: IntegrationEnum.REACT,
},
});

return (
<FocusTrap active>
Expand Down Expand Up @@ -47,9 +51,9 @@ export function CreateImportForm({ onSubmit }: CreateImportFormProps) {
key={key}
radius="xl"
leftIcon={<Icon />}
onClick={() => field.onChange(key)}
color={field.value === key ? 'blue' : 'grey'}
variant={field.value === key ? 'filled' : 'outline'}
onClick={() => field.onChange(key)}
>
{name}
</Button>
Expand Down

0 comments on commit 71dacbe

Please sign in to comment.