Proyectos de Subversion LeadersLinked - SPA

Rev

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

Rev 2688 Rev 2809
Línea 21... Línea 21...
21
  }
21
  }
22
}))
22
}))
Línea 23... Línea 23...
23
 
23
 
24
export function Widget({ children, styles, ...props }) {
24
export function Widget({ children, styles, ...props }) {
25
  return (
25
  return (
26
    <WidgetContainer sx={styles} {...props} com>
26
    <WidgetContainer sx={styles} {...props}>
27
      {children}
27
      {children}
28
    </WidgetContainer>
28
    </WidgetContainer>
29
  )
29
  )
Línea 30... Línea 30...
30
}
30
}
31
 
31
 
32
export function WidgetHeader({
32
export function WidgetHeader({
33
  title = '',
33
  title = '',
34
  subheader = '',
-
 
35
  avatar = '',
34
  subheader = '',
-
 
35
  avatar = '',
-
 
36
  styles = {},
36
  renderAction = () => null,
37
  renderAction = () => null,
37
  styles = {},
38
  onClick = () => {},
38
  ...props
39
  ...props
39
}) {
40
}) {
40
  return (
41
  return (
41
    <CardHeader
42
    <CardHeader
42
      avatar={avatar ? <Avatar alt={title} src={avatar} /> : null}
43
      avatar={avatar ? <Avatar alt={title} src={avatar} /> : null}
43
      action={renderAction()}
44
      action={renderAction()}
44
      title={title}
45
      title={title}
45
      subheader={subheader}
46
      subheader={subheader}
-
 
47
      titleTypographyProps={{
46
      titleTypographyProps={{
48
        sx: { fontSize: '16px', fontWeight: 600, color: 'var(--title-color)' },
47
        sx: { fontSize: '16px', fontWeight: 600, color: 'var(--title-color)' }
49
        onClick
48
      }}
50
      }}
49
      subheaderTypographyProps={{
51
      subheaderTypographyProps={{
50
        sx: { fontSize: '14px', color: 'var(--subtitle-color)' }
52
        sx: { fontSize: '14px', color: 'var(--subtitle-color)' }