Skip to content

Commit

Permalink
Handle button loading state in PatronPage
Browse files Browse the repository at this point in the history
  • Loading branch information
kasperbirch1 committed Oct 17, 2023
1 parent 8c08dcc commit d8b0ba8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/apps/patron-page/PatronPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,9 @@ const PatronPage: FC = () => {
type="submit"
disabled={disableSubmitButton}
>
{t("patronPageSaveButtonText")}
{disableSubmitButton
? t("loadingText")
: t("patronPageSaveButtonText")}
</button>

<div className="text-body-small-regular mt-32">
Expand Down

0 comments on commit d8b0ba8

Please sign in to comment.