Skip to content

Commit

Permalink
BHBC-2140: Revert Splash Dialog Component (#938)
Browse files Browse the repository at this point in the history
  • Loading branch information
NickPhura authored Feb 7, 2023
1 parent 9a18eaf commit fee0b44
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 127 deletions.
103 changes: 0 additions & 103 deletions app/src/components/dialog/SplashDialog.tsx

This file was deleted.

25 changes: 1 addition & 24 deletions app/src/components/layout/Header.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import AppBar from '@material-ui/core/AppBar';
import Badge from '@material-ui/core/Badge';
import Box from '@material-ui/core/Box';
import Button from '@material-ui/core/Button';
import Container from '@material-ui/core/Container';
Expand All @@ -14,11 +13,10 @@ import { Theme } from '@material-ui/core/styles/createMuiTheme';
import makeStyles from '@material-ui/core/styles/makeStyles';
import Toolbar from '@material-ui/core/Toolbar';
import Typography from '@material-ui/core/Typography';
import { mdiAccountCircle, mdiBellOutline, mdiHelpCircleOutline, mdiLoginVariant } from '@mdi/js';
import { mdiAccountCircle, mdiHelpCircleOutline, mdiLoginVariant } from '@mdi/js';
import Icon from '@mdi/react';
import headerImageLarge from 'assets/images/gov-bc-logo-horiz.png';
import headerImageSmall from 'assets/images/gov-bc-logo-vert.png';
import { OpenSplashDialog, SplashDialog } from 'components/dialog/SplashDialog';
import { AuthGuard, SystemRoleGuard, UnAuthGuard } from 'components/security/Guards';
import { SYSTEM_ROLE } from 'constants/roles';
import { AuthStateContext } from 'contexts/authStateContext';
Expand Down Expand Up @@ -110,11 +108,6 @@ const useStyles = makeStyles((theme: Theme) => ({
'& p + p': {
marginTop: theme.spacing(2)
}
},
notificationBadge: {
'& .MuiBadge-dot': {
backgroundColor: '#fcba19'
}
}
}));

Expand All @@ -134,21 +127,6 @@ const Header: React.FC = () => {

return (
<Box display="flex" className={classes.userProfile} my="auto" alignItems="center">
<IconButton
className={classes.govHeaderIconButton}
onClick={() => OpenSplashDialog()}
aria-label="Notifications">
<Badge
className={classes.notificationBadge}
variant="dot"
overlap="rectangle"
anchorOrigin={{
vertical: 'top',
horizontal: 'right'
}}>
<Icon path={mdiBellOutline} size={1.12} />
</Badge>
</IconButton>
<IconButton aria-label="need help" className={classes.govHeaderIconButton} onClick={showSupportDialog}>
<Icon path={mdiHelpCircleOutline} size={1.12} />
</IconButton>
Expand Down Expand Up @@ -203,7 +181,6 @@ const Header: React.FC = () => {

return (
<>
<SplashDialog />
<AppBar position="sticky" elevation={0}>
<Toolbar disableGutters className={classes.govHeaderToolbar}>
<Container maxWidth="xl">
Expand Down

0 comments on commit fee0b44

Please sign in to comment.