Fix alerts position

This commit is contained in:
J Francisco Rader committed 2021-03-01 12:37:13 -05:00
1 parent 83a093e36b
commit 12ed0bd46d
2 files changed
+12 -8

No files matched your search

+4 -4
View File
@@ -14,8 +14,8 @@ import { useHistory, useLocation } from 'react-router-dom';
const NOTIFICATION_ID = 'call:current';
/* InjectDebugData<CallProps | boolean>([
{
InjectDebugData<CallProps | boolean>([
/* {
app: 'CALL',
method: 'setCaller',
data: {
@@ -30,8 +30,8 @@ const NOTIFICATION_ID = 'call:current';
app: 'CALL',
method: 'callModal',
data: true,
},
]); */
}, */
]);
export const useCallService = () => {
const { t } = useTranslation();
+8 -4
View File
@@ -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>
);