Skip to content

Commit

Permalink
feat: Add loading state to form button
Browse files Browse the repository at this point in the history
  • Loading branch information
seonghunYang committed Feb 29, 2024
1 parent 605839a commit 3549a70
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/ui/view/molecule/form/form-submit-button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export function FormSubmitButton({
label,
position = 'right',
variant = 'primary',
size = 'md',
size = 'sm',
}: FormSubmitButtonProps) {
const { formId } = useContext(FormContext);
const { pending } = useFormStatus();
Expand All @@ -29,7 +29,7 @@ export function FormSubmitButton({
})}
>
<Button
disabled={pending}
loading={pending}
aria-label="submit-button"
form={formId}
size={size}
Expand Down

0 comments on commit 3549a70

Please sign in to comment.