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

@@ -1,7 +1,7 @@
import React from 'react';
import { SvgIcon } from '@material-ui/core';
import { SvgIcon, SvgIconProps } from '@material-ui/core';
export const CalculatorIcon = ({ ...props }) => {
export const CalculatorIcon = ({ ...props}: SvgIconProps) => {
return (
<SvgIcon {...props}>
<svg
@@ -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} />}
+2 -2
View File
@@ -8,8 +8,8 @@ export const HomeApp = () => {
const { apps } = useApps();
return (
<AppWrapper>
<Box width='100%' mt={6} px={1}>
{apps && <GridMenu items={apps} />}
<Box component="div" mt={6} px={1}>
{apps && <GridMenu xs={3} items={apps} />}
</Box>
</AppWrapper>
);
@@ -188,7 +188,7 @@ InjectDebugData(
profile_name: 'ItsChip',
isMine: false,
isReported: false,
message: 'I have tweeted this because Im even more badass',
message: 'I have tweeted this because Im even more badass... And I need this to be longer so I will continue to write',
},
},
],