Skip to content

Commit

Permalink
Fix PrecallTile login text CSS
Browse files Browse the repository at this point in the history
  • Loading branch information
YotaYota committed Nov 29, 2024
1 parent c07fea4 commit 585a121
Showing 1 changed file with 22 additions and 30 deletions.
52 changes: 22 additions & 30 deletions src/components/precalltitle/PrecallTitle.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Grid, Typography } from '@mui/material';
import { Grid2, Typography } from '@mui/material';
import { useAppDispatch, useAppSelector } from '../../store/hooks';
import edumeetConfig from '../../utils/edumeetConfig';
import LoginButton from '../controlbuttons/LoginButton';
Expand All @@ -23,45 +23,37 @@ const PrecallTitle = (): React.JSX.Element => {
}, []);

return (
<Grid
<Grid2
container
direction='row'
justifyContent='space-between'
alignItems='center'
>
<Grid item>
<Grid2 item>

Check failure on line 32 in src/components/precalltitle/PrecallTitle.tsx

View workflow job for this annotation

GitHub Actions / build (18.x)

No overload matches this call.
{ logo ?
<img alt='Logo' src={logo} /> :
<Typography variant='h5'> {edumeetConfig.title} </Typography>
}
</Grid>
</Grid2>

<Grid2 item>

Check failure on line 39 in src/components/precalltitle/PrecallTitle.tsx

View workflow job for this annotation

GitHub Actions / build (18.x)

No overload matches this call.
{ loginEnabled &&
<Grid2 container direction='row' alignItems='center' style={{ maxHeight: '40px' }}>
<Grid2 item>

Check failure on line 42 in src/components/precalltitle/PrecallTitle.tsx

View workflow job for this annotation

GitHub Actions / build (18.x)

No overload matches this call.
{ loggedIn ? <LogoutButton
type='iconbutton'
toolTipLocation='left'
/> : <LoginButton type="iconbutton" toolTipLocation='left' />
}
</Grid2>
<Grid2 item>

Check failure on line 49 in src/components/precalltitle/PrecallTitle.tsx

View workflow job for this annotation

GitHub Actions / build (18.x)

No overload matches this call.
{ loggedIn ? logoutLabel() : loginLabel() }
</Grid2>
</Grid2>
}
</Grid2>

<Grid item>
<Grid
container
direction='row'
justifyContent='flex-end'
alignItems='center'
>
{ loginEnabled &&
<Grid item>
<Grid container direction='column' alignItems='center' style={{ maxHeight: '40px' }}>
<Grid item>
{ loggedIn ? <LogoutButton
type='iconbutton'
toolTipLocation='left'
/> : <LoginButton type="iconbutton" toolTipLocation='left' />
}
</Grid>
<Grid item>
{ loggedIn ? logoutLabel() : loginLabel() }
</Grid>
</Grid>
</Grid>
}
</Grid>
</Grid>
</Grid>
</Grid2>
);
};

Expand Down

0 comments on commit 585a121

Please sign in to comment.