1
1
import GitHubIcon from "@mui/icons-material/GitHub" ;
2
- import LoadingButton from "@mui/lab/LoadingButton" ;
3
2
import AlertTitle from "@mui/material/AlertTitle" ;
4
3
import Autocomplete from "@mui/material/Autocomplete" ;
5
- import Button from "@mui/material/Button" ;
4
+ import MuiButton from "@mui/material/Button" ;
6
5
import Checkbox from "@mui/material/Checkbox" ;
7
6
import Link from "@mui/material/Link" ;
8
7
import MenuItem from "@mui/material/MenuItem" ;
@@ -11,10 +10,12 @@ import { countries } from "api/countriesGenerated";
11
10
import type * as TypesGen from "api/typesGenerated" ;
12
11
import { isAxiosError } from "axios" ;
13
12
import { Alert , AlertDetail } from "components/Alert/Alert" ;
13
+ import { Button } from "components/Button/Button" ;
14
14
import { FormFields , VerticalForm } from "components/Form/Form" ;
15
15
import { CoderIcon } from "components/Icons/CoderIcon" ;
16
16
import { PasswordField } from "components/PasswordField/PasswordField" ;
17
17
import { SignInLayout } from "components/SignInLayout/SignInLayout" ;
18
+ import { Spinner } from "components/Spinner/Spinner" ;
18
19
import { Stack } from "components/Stack/Stack" ;
19
20
import { type FormikContextType , useFormik } from "formik" ;
20
21
import type { ChangeEvent , FC } from "react" ;
@@ -172,7 +173,7 @@ export const SetupPageView: FC<SetupPageViewProps> = ({
172
173
< FormFields >
173
174
{ authMethods ?. github . enabled && (
174
175
< >
175
- < Button
176
+ < MuiButton
176
177
fullWidth
177
178
component = "a"
178
179
href = "/api/v2/users/oauth2/github/callback"
@@ -182,7 +183,7 @@ export const SetupPageView: FC<SetupPageViewProps> = ({
182
183
size = "xlarge"
183
184
>
184
185
{ Language . githubCreate }
185
- </ Button >
186
+ </ MuiButton >
186
187
< div className = "flex items-center gap-4" >
187
188
< div className = "h-[1px] w-full bg-border" />
188
189
< div className = "shrink-0 text-xs uppercase text-content-secondary tracking-wider" >
@@ -376,15 +377,16 @@ export const SetupPageView: FC<SetupPageViewProps> = ({
376
377
</ Alert >
377
378
) }
378
379
379
- < LoadingButton
380
- fullWidth
381
- loading = { isLoading }
380
+ < Button
381
+ className = "w-full"
382
+ disabled = { isLoading }
382
383
type = "submit"
383
384
data-testid = "create"
384
- size = "xlarge "
385
+ size = "lg "
385
386
>
387
+ < Spinner loading = { isLoading } />
386
388
{ Language . create }
387
- </ LoadingButton >
389
+ </ Button >
388
390
</ FormFields >
389
391
</ VerticalForm >
390
392
</ SignInLayout >
0 commit comments