Skip to content

Commit 2781a43

Browse files
Updated contact-us-form.tsx
- Show loading state while contact form is submitting
1 parent c1a4708 commit 2781a43

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/app/about/contact-us-form.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,9 @@ export default function ContactUsForm() {
138138
</FormItem>
139139
)}
140140
/>
141-
<Button type="submit">Submit</Button>
141+
<Button type="submit" disabled={form.formState.isSubmitting}>
142+
{form.formState.isSubmitting ? "Sending..." : "Submit"}
143+
</Button>
142144
</form>
143145
</Form>
144146
);

0 commit comments

Comments
 (0)