mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 14:38:45 +00:00
more formatting
This commit is contained in:
1 parent
046447b0fb
commit
f552c1212c
157 files changed
+635
-1579
No files matched your search
@@ -51,14 +51,14 @@ export const NotificationAlert = () => {
|
||||
<Alert
|
||||
action={
|
||||
<IconButton
|
||||
color='primary'
|
||||
size='small'
|
||||
color="primary"
|
||||
size="small"
|
||||
onClick={(e) => {
|
||||
e.stopPropagation();
|
||||
currentAlert?.onCloseAlert(e);
|
||||
}}
|
||||
>
|
||||
<CloseIcon fontSize='small' />
|
||||
<CloseIcon fontSize="small" />
|
||||
</IconButton>
|
||||
}
|
||||
onClick={(e) => currentAlert?.onClickAlert(e)}
|
||||
@@ -67,13 +67,13 @@ export const NotificationAlert = () => {
|
||||
elevation={6}
|
||||
>
|
||||
<AlertTitle>
|
||||
<Box width='282px' whiteSpace='nowrap'>
|
||||
<Box overflow='hidden' component='div' textOverflow='ellipsis'>
|
||||
<Box width="282px" whiteSpace="nowrap">
|
||||
<Box overflow="hidden" component="div" textOverflow="ellipsis">
|
||||
{currentAlert?.title}
|
||||
</Box>
|
||||
</Box>
|
||||
</AlertTitle>
|
||||
<Box component='div' className={classes.alertContent}>
|
||||
<Box component="div" className={classes.alertContent}>
|
||||
{currentAlert?.content}
|
||||
</Box>
|
||||
</Alert>
|
||||
|
||||
@@ -79,13 +79,13 @@ export const NotificationBar = () => {
|
||||
<Grid
|
||||
className={classes.root}
|
||||
container
|
||||
justify='space-between'
|
||||
wrap='nowrap'
|
||||
justify="space-between"
|
||||
wrap="nowrap"
|
||||
onClick={() => {
|
||||
setBarUncollapsed((curr) => !curr);
|
||||
}}
|
||||
>
|
||||
<Grid container item wrap='nowrap'>
|
||||
<Grid container item wrap="nowrap">
|
||||
{icons.map((notifIcon) => (
|
||||
<Grid
|
||||
item
|
||||
@@ -97,29 +97,21 @@ export const NotificationBar = () => {
|
||||
</Grid>
|
||||
))}
|
||||
</Grid>
|
||||
<Grid
|
||||
container
|
||||
item
|
||||
wrap='nowrap'
|
||||
justify='flex-end'
|
||||
alignItems='center'
|
||||
>
|
||||
<Grid container item wrap="nowrap" justify="flex-end" alignItems="center">
|
||||
<Grid item>
|
||||
<SignalIcon fontSize='small' />
|
||||
<SignalIcon fontSize="small" />
|
||||
</Grid>
|
||||
<Grid item className={classes.item}>
|
||||
<Typography className={classes.text} variant='button'>
|
||||
<Typography className={classes.text} variant="button">
|
||||
{Default.cellProvider}
|
||||
</Typography>
|
||||
</Grid>
|
||||
<Grid item>
|
||||
<Battery90Icon
|
||||
style={{ transform: 'rotate(90deg)', display: 'block' }}
|
||||
/>
|
||||
<Battery90Icon style={{ transform: 'rotate(90deg)', display: 'block' }} />
|
||||
</Grid>
|
||||
</Grid>
|
||||
</Grid>
|
||||
<Slide direction='down' in={barUncollapsed}>
|
||||
<Slide direction="down" in={barUncollapsed}>
|
||||
<Paper square className={classes.drawer}>
|
||||
<Box py={2}>
|
||||
<List>
|
||||
@@ -146,10 +138,10 @@ export const NotificationBar = () => {
|
||||
))}
|
||||
</List>
|
||||
</Box>
|
||||
<Box display='flex'>
|
||||
<Box display="flex">
|
||||
<IconButton
|
||||
className={classes.collapseBtn}
|
||||
size='small'
|
||||
size="small"
|
||||
onClick={() => setBarUncollapsed(false)}
|
||||
>
|
||||
<ArrowDropUpIcon />
|
||||
|
||||
@@ -9,7 +9,7 @@ interface INotificationIcon {
|
||||
|
||||
export const NotificationIcon = ({ icon, to }: INotificationIcon) => {
|
||||
return (
|
||||
<IconButton component={NavLink} to={to} size='small'>
|
||||
<IconButton component={NavLink} to={to} size="small">
|
||||
{icon}
|
||||
</IconButton>
|
||||
);
|
||||
|
||||
@@ -47,12 +47,8 @@ export const NotificationItem = ({
|
||||
{icon && <ListItemAvatar>{icon}</ListItemAvatar>}
|
||||
<ListItemText secondary={content}>{title}</ListItemText>
|
||||
{!cantClose && (
|
||||
<IconButton
|
||||
className={classes.closeNotifBtn}
|
||||
size='small'
|
||||
onClick={onClose}
|
||||
>
|
||||
<CloseIcon color='primary' />
|
||||
<IconButton className={classes.closeNotifBtn} size="small" onClick={onClose}>
|
||||
<CloseIcon color="primary" />
|
||||
</IconButton>
|
||||
)}
|
||||
</ListItem>
|
||||
|
||||
Reference in new issue
Block a user