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
@@ -7,8 +7,9 @@ import {
|
||||
import KeyboardArrowLeftIcon from '@material-ui/icons/KeyboardArrowLeft';
|
||||
import AppsIcon from '@material-ui/icons/Apps';
|
||||
import RadioButtonUncheckedIcon from '@material-ui/icons/RadioButtonUnchecked';
|
||||
import { useHistory } from 'react-router-dom';
|
||||
import { useHistory, useRouteMatch } from 'react-router-dom';
|
||||
import { usePhone } from '../../phone/hooks/usePhone';
|
||||
import { useNotifications } from '../../notifications/hooks/useNotifications';
|
||||
|
||||
const useStyles = makeStyles((theme) => ({
|
||||
root: {
|
||||
@@ -18,14 +19,18 @@ const useStyles = makeStyles((theme) => ({
|
||||
}));
|
||||
|
||||
export const Navigation = () => {
|
||||
const { closePhone } = usePhone();
|
||||
|
||||
const classes = useStyles();
|
||||
const history = useHistory();
|
||||
const { isExact } = useRouteMatch('/');
|
||||
const { closePhone } = usePhone();
|
||||
const { setBarUncollapsed } = useNotifications();
|
||||
return (
|
||||
<BottomNavigation
|
||||
className={classes.root}
|
||||
onChange={(_e, value) => value()}
|
||||
onChange={(_e, value) => {
|
||||
setBarUncollapsed(false);
|
||||
value();
|
||||
}}
|
||||
>
|
||||
<BottomNavigationAction
|
||||
label='Home'
|
||||
@@ -39,7 +44,7 @@ export const Navigation = () => {
|
||||
/>
|
||||
<BottomNavigationAction
|
||||
label='Back'
|
||||
value={history.goBack}
|
||||
value={() => !isExact && history.goBack()}
|
||||
icon={<KeyboardArrowLeftIcon />}
|
||||
/>
|
||||
</BottomNavigation>
|
||||
|
||||
Reference in new issue
Block a user