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:
J Francisco RaderandChristopher authored and GitHub committed 2021-02-26 21:45:01 -05:00
1 parent d2461bab16
commit 41674968ab
24 files changed
+396 -206

No files matched your search

@@ -48,7 +48,12 @@ export const DialerHistory = ({ calls }) => {
alignItems='center'
paddingTop={35}
>
<p>You got no friends!😎</p>
<p>
You got no friends!
<span role='img' aria-label='deal with it'>
😎
</span>
</p>
</Box>
);
}
@@ -60,7 +65,6 @@ export const DialerHistory = ({ calls }) => {
<ListItem
key={call.id}
divider
onClick={() => handleCall(call.receiver)}
>
<ListItemIcon>
{<PhoneForwardedIcon className={classes.callForward} />}
@@ -74,21 +78,22 @@ export const DialerHistory = ({ calls }) => {
{<PhoneIcon />}
</IconButton>
<IconButton
onClick={() =>
history.push(
`/contacts/-1?addNumber=${call.transmitter}&referal=/phone/contacts`
)
}
>
{<PersonAddIcon />}
</IconButton>
{getDisplayByNumber(call.transmitter) === call.transmitter ? (
<IconButton
onClick={() =>
history.push(
`/contacts/-1?addNumber=${call.transmitter}&referal=/phone/contacts`
)
}
>
{<PersonAddIcon />}
</IconButton>
) : null}
</ListItem>
) : (
<ListItem
key={call.id}
divider
onClick={() => handleCall(call.transmitter)}
>
<ListItemIcon>
{<PhoneCallbackIcon className={classes.callBack} />}