mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 14:38:45 +00:00
printWidth: 100
This commit is contained in:
1 parent
d27aeb3b0e
commit
6f4ee009a9
63 files changed
+602
-223
No files matched your search
@@ -23,13 +23,23 @@ const useStyles = makeStyles(() => ({
|
||||
},
|
||||
}));
|
||||
|
||||
export const AppContent = ({ children, style, backdrop, onClickBackdrop, ...props }: AppContentTypes & BoxProps) => {
|
||||
export const AppContent = ({
|
||||
children,
|
||||
style,
|
||||
backdrop,
|
||||
onClickBackdrop,
|
||||
...props
|
||||
}: AppContentTypes & BoxProps) => {
|
||||
const classes = useStyles();
|
||||
return (
|
||||
<Paper className={classes.wrapper} square>
|
||||
<Box flexGrow={1} className={classes.box} {...props}>
|
||||
<Paper square elevation={0} className={classes.paper}>
|
||||
<Backdrop className={classes.backdrop} open={backdrop || false} onClick={onClickBackdrop} />
|
||||
<Backdrop
|
||||
className={classes.backdrop}
|
||||
open={backdrop || false}
|
||||
onClick={onClickBackdrop}
|
||||
/>
|
||||
{children}
|
||||
</Paper>
|
||||
</Box>
|
||||
|
||||
@@ -43,7 +43,11 @@ export const AppIcon = ({ id, nameLocale, name, icon, backgroundColor, color, no
|
||||
TransitionComponent={Zoom}
|
||||
>
|
||||
<Button className={classes.root}>
|
||||
<Badge color="error" badgeContent={notification?.badge} invisible={!notification || notification.badge < 2}>
|
||||
<Badge
|
||||
color="error"
|
||||
badgeContent={notification?.badge}
|
||||
invisible={!notification || notification.badge < 2}
|
||||
>
|
||||
<Avatar className={classes.avatar}>{icon || name[0].toUpperCase()}</Avatar>
|
||||
</Badge>
|
||||
</Button>
|
||||
|
||||
@@ -28,7 +28,11 @@ const useStyle = makeStyles(
|
||||
);
|
||||
// Taso: Maybe we should pass an icon (maybe fa?) as a prop as well at somepoint
|
||||
// but need to think about the best way to do that for standardization sake.
|
||||
export const AppTitle = ({ app: { backgroundColor, color, nameLocale }, variant = 'h5', ...props }: IProps) => {
|
||||
export const AppTitle = ({
|
||||
app: { backgroundColor, color, nameLocale },
|
||||
variant = 'h5',
|
||||
...props
|
||||
}: IProps) => {
|
||||
const classes = useStyle({ color, backgroundColor });
|
||||
const { t } = useTranslation();
|
||||
return (
|
||||
|
||||
@@ -17,7 +17,8 @@ const useStyles = makeStyles(
|
||||
},
|
||||
},
|
||||
outlined: {
|
||||
border: ({ color }: IStatusButtonStyleProps) => `1px solid ${fade(theme.palette[color].main, 0.5)}`,
|
||||
border: ({ color }: IStatusButtonStyleProps) =>
|
||||
`1px solid ${fade(theme.palette[color].main, 0.5)}`,
|
||||
'&:hover': {
|
||||
border: ({ color }: IStatusButtonStyleProps) => `1px solid ${theme.palette[color].main}`,
|
||||
},
|
||||
@@ -43,5 +44,11 @@ export const StatusButton = ({
|
||||
...props
|
||||
}: Omit<ButtonProps, 'color'> & { color: StatusButtonStyleColor }) => {
|
||||
const classes = useStyles({ color });
|
||||
return <Button variant={variant} className={`${classes.root} ${classes[variant] || ''} ${className}`} {...props} />;
|
||||
return (
|
||||
<Button
|
||||
variant={variant}
|
||||
className={`${classes.root} ${classes[variant] || ''} ${className}`}
|
||||
{...props}
|
||||
/>
|
||||
);
|
||||
};
|
||||
@@ -17,7 +17,8 @@ const useStyles = makeStyles(
|
||||
},
|
||||
},
|
||||
outlined: {
|
||||
border: ({ color }: IStatusButtonStyleProps) => `1px solid ${fade(theme.palette[color].main, 0.5)}`,
|
||||
border: ({ color }: IStatusButtonStyleProps) =>
|
||||
`1px solid ${fade(theme.palette[color].main, 0.5)}`,
|
||||
'&:hover': {
|
||||
border: ({ color }: IStatusButtonStyleProps) => `1px solid ${theme.palette[color].main}`,
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user