Skip to content

Commit

Permalink
feat: [OI-249] spinner on idps fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
mmoio committed Nov 29, 2024
1 parent 0e997a5 commit 798490f
Showing 1 changed file with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import type { IdentityProvider, IdentityProviders } from '../../utils/IDPS';
import { ImageWithFallback } from '../../components/ImageFallback';
import SpidSelect from './SpidSelect';
import SpidModal from './SpidModal';
import LoadingButton from '@mui/lab/LoadingButton';

type BannerContent = {
enable: boolean;
Expand Down Expand Up @@ -325,17 +326,20 @@ const Login = () => {
idpList={idpList}
/>
<Grid item sx={{ width: '100%' }}>
<Button
<LoadingButton
aria-busy={!!idpList}
disableElevation
id="spidButton"
loading={!!idpList}
loadingPosition="end"
onClick={() => setOpenSpidModal(true)}
startIcon={<SpidIconWrapper />}
sx={{
borderRadius: '4px',
width: '100%',
marginBottom: '5px',
}}
onClick={() => setOpenSpidModal(true)}
variant="contained"
disableElevation
startIcon={<SpidIconWrapper />}
>
<Typography
sx={{
Expand All @@ -346,7 +350,7 @@ const Login = () => {
>
{t('loginPage.loginBox.spidLogin')}
</Typography>
</Button>
</LoadingButton>
</Grid>
<Grid item sx={{ width: '100%' }}>
<Button
Expand Down

0 comments on commit 798490f

Please sign in to comment.