added testing for TwitterNotification

This commit is contained in:
erik-sn committed 2020-10-18 13:31:01 -04:00
1 parent dcee8690c8
commit e48263838f
11 files changed
+127 -47

No files matched your search

+10 -4
View File
@@ -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}