mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-03 22:16:54 +00:00
Fix alerts position
This commit is contained in:
2 files changed
+12
-8
No files matched your search
@@ -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();
|
||||
|
||||
@@ -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