Skip to content

Commit a2a1900

Browse files
authored
🎨 Replace buttons styling for variants for consistency (fastapi#722)
1 parent 3fbdf21 commit a2a1900

File tree

4 files changed

+4
-27
lines changed

4 files changed

+4
-27
lines changed

frontend/src/components/UserSettings/DeleteAccount.tsx

+1-7
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,7 @@ const DeleteAccount: React.FC = () => {
2222
Permanently delete your data and everything associated with your
2323
account.
2424
</Text>
25-
<Button
26-
bg="ui.danger"
27-
color="white"
28-
_hover={{ opacity: 0.8 }}
29-
mt={4}
30-
onClick={confirmationModal.onOpen}
31-
>
25+
<Button variant="danger" mt={4} onClick={confirmationModal.onOpen}>
3226
Delete
3327
</Button>
3428
<DeleteConfirmation

frontend/src/routes/login.tsx

+1-7
Original file line numberDiff line numberDiff line change
@@ -127,13 +127,7 @@ function Login() {
127127
Forgot password?
128128
</Link>
129129
</Center>
130-
<Button
131-
bg="ui.main"
132-
color="white"
133-
_hover={{ opacity: 0.8 }}
134-
type="submit"
135-
isLoading={isSubmitting}
136-
>
130+
<Button variant="primary" type="submit" isLoading={isSubmitting}>
137131
Log In
138132
</Button>
139133
</Container>

frontend/src/routes/recover-password.tsx

+1-7
Original file line numberDiff line numberDiff line change
@@ -82,13 +82,7 @@ function RecoverPassword() {
8282
<FormErrorMessage>{errors.email.message}</FormErrorMessage>
8383
)}
8484
</FormControl>
85-
<Button
86-
bg="ui.main"
87-
color="white"
88-
_hover={{ opacity: 0.8 }}
89-
type="submit"
90-
isLoading={isSubmitting}
91-
>
85+
<Button variant="primary" type="submit" isLoading={isSubmitting}>
9286
Continue
9387
</Button>
9488
</Container>

frontend/src/routes/reset-password.tsx

+1-6
Original file line numberDiff line numberDiff line change
@@ -124,12 +124,7 @@ function ResetPassword() {
124124
<FormErrorMessage>{errors.confirm_password.message}</FormErrorMessage>
125125
)}
126126
</FormControl>
127-
<Button
128-
bg="ui.main"
129-
color="white"
130-
_hover={{ opacity: 0.8 }}
131-
type="submit"
132-
>
127+
<Button variant="primary" type="submit">
133128
Reset Password
134129
</Button>
135130
</Container>

0 commit comments

Comments
 (0)