mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 14:38:45 +00:00
120 in printWidth since rocky got md
This commit is contained in:
1 parent
f552c1212c
commit
d27aeb3b0e
90 files changed
+398
-1146
No files matched your search
@@ -44,11 +44,7 @@ export const DialerInput = () => {
|
||||
|
||||
return (
|
||||
<Box component={Paper} className={classes.root}>
|
||||
<InputBase
|
||||
placeholder="Enter a number"
|
||||
className={classes.input}
|
||||
value={inputVal}
|
||||
/>
|
||||
<InputBase placeholder="Enter a number" className={classes.input} value={inputVal} />
|
||||
<IconButton color="primary" className={classes.iconBtn}>
|
||||
<PhoneIcon fontSize="large" onClick={() => handleCall(inputVal)} />
|
||||
</IconButton>
|
||||
|
||||
@@ -26,19 +26,8 @@ const DialerNavBar = () => {
|
||||
};
|
||||
|
||||
return (
|
||||
<BottomNavigation
|
||||
value={page}
|
||||
onChange={handleChange}
|
||||
showLabels
|
||||
className={classes.root}
|
||||
>
|
||||
<BottomNavigationAction
|
||||
label="History"
|
||||
value="/phone"
|
||||
component={NavLink}
|
||||
icon={<HistoryIcon />}
|
||||
to="/phone"
|
||||
/>
|
||||
<BottomNavigation value={page} onChange={handleChange} showLabels className={classes.root}>
|
||||
<BottomNavigationAction label="History" value="/phone" component={NavLink} icon={<HistoryIcon />} to="/phone" />
|
||||
<BottomNavigationAction
|
||||
label="Dial"
|
||||
value="/phone/dial"
|
||||
|
||||
@@ -58,25 +58,17 @@ export const DialerHistory = ({ calls }) => {
|
||||
{calls.map((call: ICall) =>
|
||||
call.transmitter === number ? (
|
||||
<ListItem key={call.id} divider>
|
||||
<ListItemIcon>
|
||||
{<PhoneForwardedIcon className={classes.callForward} />}
|
||||
</ListItemIcon>
|
||||
<ListItemIcon>{<PhoneForwardedIcon className={classes.callForward} />}</ListItemIcon>
|
||||
|
||||
<ListItemText
|
||||
primary={getDisplayByNumber(call.receiver)}
|
||||
secondary={dayjs.unix(call.start).format(t('DATE_TIME_FORMAT'))}
|
||||
/>
|
||||
<IconButton onClick={() => handleCall(call.receiver)}>
|
||||
{<PhoneIcon />}
|
||||
</IconButton>
|
||||
<IconButton onClick={() => handleCall(call.receiver)}>{<PhoneIcon />}</IconButton>
|
||||
|
||||
{getDisplayByNumber(call.transmitter) === call.transmitter ? (
|
||||
<IconButton
|
||||
onClick={() =>
|
||||
history.push(
|
||||
`/contacts/-1?addNumber=${call.transmitter}&referal=/phone/contacts`,
|
||||
)
|
||||
}
|
||||
onClick={() => history.push(`/contacts/-1?addNumber=${call.transmitter}&referal=/phone/contacts`)}
|
||||
>
|
||||
{<PersonAddIcon />}
|
||||
</IconButton>
|
||||
@@ -84,25 +76,17 @@ export const DialerHistory = ({ calls }) => {
|
||||
</ListItem>
|
||||
) : (
|
||||
<ListItem key={call.id} divider>
|
||||
<ListItemIcon>
|
||||
{<PhoneCallbackIcon className={classes.callBack} />}
|
||||
</ListItemIcon>
|
||||
<ListItemIcon>{<PhoneCallbackIcon className={classes.callBack} />}</ListItemIcon>
|
||||
|
||||
<ListItemText
|
||||
primary={getDisplayByNumber(call.transmitter)}
|
||||
secondary={dayjs.unix(call.start).format(t('DATE_TIME_FORMAT'))}
|
||||
/>
|
||||
<IconButton onClick={() => handleCall(call.transmitter)}>
|
||||
{<PhoneIcon />}
|
||||
</IconButton>
|
||||
<IconButton onClick={() => handleCall(call.transmitter)}>{<PhoneIcon />}</IconButton>
|
||||
|
||||
{getDisplayByNumber(call.transmitter) === call.transmitter ? (
|
||||
<IconButton
|
||||
onClick={() =>
|
||||
history.push(
|
||||
`/contacts/-1?addNumber=${call.transmitter}&referal=/phone/contacts`,
|
||||
)
|
||||
}
|
||||
onClick={() => history.push(`/contacts/-1?addNumber=${call.transmitter}&referal=/phone/contacts`)}
|
||||
>
|
||||
{<PersonAddIcon />}
|
||||
</IconButton>
|
||||
|
||||
Reference in new issue
Block a user