Proyectos de Subversion LeadersLinked - SPA

Rev

Rev 2825 | Rev 2829 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 2825 Rev 2827
Línea 7... Línea 7...
7
  CardHeader,
7
  CardHeader,
8
  CardMedia,
8
  CardMedia,
9
  styled
9
  styled
10
} from '@mui/material'
10
} from '@mui/material'
Línea -... Línea 11...
-
 
11
 
-
 
12
import colors from '@styles/colors'
11
 
13
 
12
const WidgetContainer = styled(Card)(({ theme }) => ({
14
const WidgetContainer = styled(Card)(({ theme }) => ({
13
  borderRadius: 0,
15
  borderRadius: 0,
14
  boxShadow: theme.shadows[1],
16
  boxShadow: theme.shadows[1],
15
  height: 'fit-content',
17
  height: 'fit-content',
Línea 38... Línea 40...
38
  onClick = () => {},
40
  onClick = () => {},
39
  ...props
41
  ...props
40
}) {
42
}) {
41
  return (
43
  return (
42
    <CardHeader
44
    <CardHeader
-
 
45
      avatar={
-
 
46
        avatar ? (
-
 
47
          <Avatar
-
 
48
            alt={title}
-
 
49
            src={avatar}
43
      avatar={avatar ? <Avatar alt={title} src={avatar} /> : null}
50
            sx={{ marginRight: (theme) => theme.spacing(0.5) }}
-
 
51
          />
-
 
52
        ) : null
-
 
53
      }
44
      action={renderAction()}
54
      action={renderAction()}
45
      title={title}
55
      title={title}
46
      subheader={subheader}
56
      subheader={subheader}
47
      titleTypographyProps={{
57
      titleTypographyProps={{
48
        variant: 'h3',
58
        variant: 'h3',
Línea 82... Línea 92...
82
        justifyContent: 'space-around',
92
        justifyContent: 'space-around',
83
        gap: 1,
93
        gap: 1,
84
        '& > button': {
94
        '& > button': {
85
          flex: '1'
95
          flex: '1'
86
        },
96
        },
-
 
97
        borderStyle: 'solid',
-
 
98
        borderTopWidth: '1px',
-
 
99
        borderColor: colors.border.primary,
87
        ...styles
100
        ...styles
88
      }}
101
      }}
89
      disableSpacing
102
      disableSpacing
90
      {...props}
103
      {...props}
91
    >
104
    >