mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 14:38:45 +00:00
Fix alerts position
This commit is contained in:
2 files changed
+12
-8
No files matched your search
@@ -6,10 +6,16 @@ import Alert from './Alert';
|
||||
|
||||
const useStyles = makeStyles({
|
||||
root: {
|
||||
marginTop: '-100px',
|
||||
display: 'flex',
|
||||
justifyContent: 'center',
|
||||
alignItems: 'center',
|
||||
height: '50%',
|
||||
overflow: 'auto',
|
||||
margin: '0 auto',
|
||||
position: 'absolute',
|
||||
left: 0,
|
||||
bottom: '-100px',
|
||||
right: 0,
|
||||
},
|
||||
});
|
||||
|
||||
@@ -21,9 +27,7 @@ export const Snackbar = () => {
|
||||
return (
|
||||
<div className={classes.root}>
|
||||
{alert ? (
|
||||
<Alert severity={alert.type}>
|
||||
{t('APPS_' + alert.message)}
|
||||
</Alert>
|
||||
<Alert severity={alert.type}>{t('APPS_' + alert.message)}</Alert>
|
||||
) : null}
|
||||
</div>
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user