Skip to content

Commit

Permalink
Added spinner to set password link
Browse files Browse the repository at this point in the history
  • Loading branch information
shahanneda committed Sep 5, 2024
1 parent c7dbab7 commit 9bd2a19
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions frontend/src/components/auth/ResetPassword.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import {
FormErrorMessage,
FormLabel,
Input,
Spinner,
Text,
VStack,
useToast,
Expand Down Expand Up @@ -217,7 +218,7 @@ const ResetPassword = (): React.ReactElement => {
pt={1}
pb={1}
backgroundColor="primary.blue"
disabled={!!getUserError}
disabled={!!getUserError || resetPasswordLoading}
>
<Text
variant={{
Expand All @@ -226,7 +227,7 @@ const ResetPassword = (): React.ReactElement => {
}}
color="white"
>
{resetPasswordLoading ? "Loading..." : "Reset"}
{resetPasswordLoading ? <Spinner /> : "Reset"}
</Text>
</Button>
</VStack>
Expand Down
5 changes: 3 additions & 2 deletions frontend/src/components/auth/SetPassword.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import {
FormErrorMessage,
FormLabel,
Input,
Spinner,
Text,
VStack,
useToast,
Expand Down Expand Up @@ -279,7 +280,7 @@ const SetPassword = (): React.ReactElement => {
pt={1}
pb={1}
backgroundColor="primary.blue"
disabled={!!onboardingError || dataStatus()}
disabled={!!onboardingError || dataStatus() || registerLoading}
>
<Text
variant={{
Expand All @@ -288,7 +289,7 @@ const SetPassword = (): React.ReactElement => {
}}
color="white"
>
{registerLoading ? "Loading..." : "Confirm"}
{registerLoading ? <Spinner /> : "Confirm"}
</Text>
</Button>
</VStack>
Expand Down

0 comments on commit 9bd2a19

Please sign in to comment.