mad formatting

This commit is contained in:
Christopher committed 2021-03-02 20:41:25 +01:00
1 parent 6777498bcc
commit 046447b0fb
74 files changed
+329 -309

No files matched your search

@@ -19,7 +19,12 @@ const ButtonItem = ({ label, onClick }: IBtnItem) => {
const classes = useStyles();
return (
<Grid key={label} item xs={4}>
<Button fullWidth size="large" className={classes.gridItem} onClick={onClick}>
<Button
fullWidth
size='large'
className={classes.gridItem}
onClick={onClick}
>
{label}
</Button>
</Grid>
@@ -27,10 +32,10 @@ const ButtonItem = ({ label, onClick }: IBtnItem) => {
};
export const DialGrid = () => {
const { add, removeOne, clear} = useContext(DialInputCtx)
const { add, removeOne, clear } = useContext(DialInputCtx);
return (
<Box height="100%">
<Box height='100%'>
<Grid container justify='space-around'>
<ButtonItem label={1} onClick={() => add(1)} />
<ButtonItem label={2} onClick={() => add(2)} />
@@ -39,8 +39,8 @@ export const DialerInput = () => {
};
const handleNewContact = (number: string) => {
history.push(`/contacts/-1/?addNumber=${number}&referal=/phone/contacts`)
}
history.push(`/contacts/-1/?addNumber=${number}&referal=/phone/contacts`);
};
return (
<Box component={Paper} className={classes.root}>
@@ -50,10 +50,13 @@ export const DialerInput = () => {
value={inputVal}
/>
<IconButton color='primary' className={classes.iconBtn}>
<PhoneIcon fontSize="large" onClick={() => handleCall(inputVal)} />
<PhoneIcon fontSize='large' onClick={() => handleCall(inputVal)} />
</IconButton>
<IconButton className={classes.iconBtn}>
<PersonAddIcon fontSize="large" onClick={() => handleNewContact(inputVal)} />
<PersonAddIcon
fontSize='large'
onClick={() => handleNewContact(inputVal)}
/>
</IconButton>
</Box>
);
@@ -42,7 +42,7 @@ const DialerNavBar = () => {
<BottomNavigationAction
label='Dial'
value='/phone/dial'
color="secondary"
color='secondary'
component={NavLink}
icon={<PhoneIcon />}
to='/phone/dial'
@@ -50,7 +50,7 @@ const DialerNavBar = () => {
<BottomNavigationAction
label='Contacts'
value='/phone/contacts'
color="secondary"
color='secondary'
component={NavLink}
icon={<PersonIcon />}
to='/phone/contacts'
@@ -62,10 +62,7 @@ export const DialerHistory = ({ calls }) => {
<List disablePadding>
{calls.map((call: ICall) =>
call.transmitter === number ? (
<ListItem
key={call.id}
divider
>
<ListItem key={call.id} divider>
<ListItemIcon>
{<PhoneForwardedIcon className={classes.callForward} />}
</ListItemIcon>
@@ -91,10 +88,7 @@ export const DialerHistory = ({ calls }) => {
) : null}
</ListItem>
) : (
<ListItem
key={call.id}
divider
>
<ListItem key={call.id} divider>
<ListItemIcon>
{<PhoneCallbackIcon className={classes.callBack} />}
</ListItemIcon>