Skip to content

Commit

Permalink
Submitting state
Browse files Browse the repository at this point in the history
  • Loading branch information
vcarl committed Jan 2, 2024
1 parent 87bed59 commit 86dae6a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion src/components/Census/2023/Demographics.js
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,12 @@ export const Demographics = ({ onSubmit }) => {
</label>
</CensusItem>

<Button disabled={isSubmitting} as="input" type="submit" value="Submit" />
<Button
disabled={isSubmitting}
as="input"
type="submit"
value={isSubmitting ? "…" : "Submit"}
/>
</form>
);
};
2 changes: 1 addition & 1 deletion src/components/Census/2023/Professional.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ export const Professional = ({ onSubmit }) => {
disabled={isSubmitting}
as="input"
type="submit"
value="Submit, next page"
value={isSubmitting ? "…" : "Submit, next page"}
/>
</form>
);
Expand Down

0 comments on commit 86dae6a

Please sign in to comment.