From d8b0ba8afb672a6fd27089e93d2f9ab285564095 Mon Sep 17 00:00:00 2001 From: Kasper Birch Date: Fri, 13 Oct 2023 14:51:29 +0200 Subject: [PATCH] Handle button loading state in `PatronPage` --- src/apps/patron-page/PatronPage.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/apps/patron-page/PatronPage.tsx b/src/apps/patron-page/PatronPage.tsx index 487d5d09cb..2ca03f7f39 100644 --- a/src/apps/patron-page/PatronPage.tsx +++ b/src/apps/patron-page/PatronPage.tsx @@ -146,7 +146,9 @@ const PatronPage: FC = () => { type="submit" disabled={disableSubmitButton} > - {t("patronPageSaveButtonText")} + {disableSubmitButton + ? t("loadingText") + : t("patronPageSaveButtonText")}