mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 14:38:45 +00:00
added testing for TwitterNotification
This commit is contained in:
1 parent
dcee8690c8
commit
e48263838f
11 files changed
+127
-47
No files matched your search
@@ -5,23 +5,29 @@ import Snackbar from '@material-ui/core/Snackbar';
|
||||
import Fade from '@material-ui/core/Fade';
|
||||
import { makeStyles } from "@material-ui/core/styles";
|
||||
import { useSettings } from "../../apps/settings/hooks/useSettings";
|
||||
import { usePhone } from "../../os/phone/hooks/usePhone";
|
||||
|
||||
const useStyles = makeStyles({
|
||||
paper: {
|
||||
width: '350px',
|
||||
height: '85px',
|
||||
height: '100px',
|
||||
opacity: '0.93',
|
||||
}
|
||||
});
|
||||
|
||||
function Notification({ key, children, handleClose, open }) {
|
||||
function Notification({ children, handleClose, open }) {
|
||||
const classes = useStyles();
|
||||
const { currentTheme } = useSettings();
|
||||
const { config } = usePhone();
|
||||
|
||||
if (!config) return null;
|
||||
|
||||
const { horizontal, vertical } = config.notificationPosition;
|
||||
|
||||
return (
|
||||
<ThemeProvider theme={currentTheme()}>
|
||||
<Snackbar
|
||||
key={key}
|
||||
anchorOrigin={{ vertical: 'top', horizontal: 'left' }}
|
||||
anchorOrigin={{ horizontal, vertical }}
|
||||
ClickAwayListenerProps={{ onClickAway: () => null }}
|
||||
onClose={handleClose}
|
||||
open={open}
|
||||
|
||||
Reference in new issue
Block a user