mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 22:16:40 +00:00
Notification alert stays on if it is an incoming call and phone is closed (#115)
* Phone now shows all the time slide a bit if incoming call exists | can close alerts! * Improve animation * Improve call controls * Make alerts not overflow | Call modal is navigable out :) * Open modal when accepting call * Cant navigate back from homepage * Avoid call route if no call active + rename things * Impprove main apps icons sizes * hover effect to app icons :) * Revert interface change * fix(phone/dialer): resolve not calling when adding contacts Co-authored-by: Christopher <[email protected]>
This commit is contained in:
1 parent
d2461bab16
commit
41674968ab
24 files changed
+396
-206
No files matched your search
@@ -6,16 +6,18 @@ import {
|
||||
ListItemAvatar,
|
||||
ListItemText,
|
||||
makeStyles,
|
||||
Theme,
|
||||
} from '@material-ui/core';
|
||||
import { INotification } from '../providers/NotificationsProvider';
|
||||
|
||||
const useStyles = makeStyles((theme) => ({
|
||||
const useStyles = makeStyles<Theme, { cantClose: boolean }>((theme) => ({
|
||||
closeNotifBtn: {
|
||||
position: 'absolute',
|
||||
right: '8px',
|
||||
top: '8px',
|
||||
},
|
||||
notificationItem: {
|
||||
paddingRight: ({ cantClose }) => (cantClose ? '8px' : '28px'),
|
||||
position: 'relative',
|
||||
},
|
||||
}));
|
||||
@@ -29,7 +31,7 @@ export const NotificationItem = ({
|
||||
onClickClose: (e: any) => void;
|
||||
}) => {
|
||||
const { title, icon, content, cantClose, onClick } = notification;
|
||||
const classes = useStyles();
|
||||
const classes = useStyles({ cantClose });
|
||||
return (
|
||||
<ListItem
|
||||
divider
|
||||
|
||||
Reference in new issue
Block a user