Proyectos de Subversion LeadersLinked - SPA

Rev

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

Rev 2364 Rev 2366
Línea 32... Línea 32...
32
export function WidgetHeader({
32
export function WidgetHeader({
33
  title = '',
33
  title = '',
34
  subheader = '',
34
  subheader = '',
35
  avatar = '',
35
  avatar = '',
36
  renderAction = () => null,
36
  renderAction = () => null,
37
  styles,
37
  styles = {},
38
  ...props
38
  ...props
39
}) {
39
}) {
40
  return (
40
  return (
41
    <CardHeader
41
    <CardHeader
42
      avatar={avatar ? <Avatar alt={title} src={avatar} /> : null}
42
      avatar={avatar ? <Avatar alt={title} src={avatar} /> : null}
Línea 53... Línea 53...
53
      {...props}
53
      {...props}
54
    />
54
    />
55
  )
55
  )
56
}
56
}
Línea 57... Línea 57...
57
 
57
 
58
export function WidgetBody({ children, styles, ...props }) {
58
export function WidgetBody({ children, styles = {}, ...props }) {
59
  return (
59
  return (
60
    <CardContent
60
    <CardContent
61
      sx={{ padding: 1, '&:last-child': { paddingBottom: 1 }, ...styles }}
61
      sx={{ padding: 1, '&:last-child': { paddingBottom: 1 }, ...styles }}
62
      {...props}
62
      {...props}
63
    >
63
    >
64
      {children}
64
      {children}
65
    </CardContent>
65
    </CardContent>
66
  )
66
  )
Línea 67... Línea 67...
67
}
67
}
68
 
68
 
69
export function WidgetActions({ children, styles, ...props }) {
69
export function WidgetActions({ children, styles = {}, ...props }) {
70
  return (
70
  return (
71
    <CardActions
71
    <CardActions
72
      sx={{ padding: 1, paddingTop: 0, ...styles }}
72
      sx={{ padding: 1, paddingTop: 0, ...styles }}
Línea 82... Línea 82...
82
  src = '',
82
  src = '',
83
  height = 200,
83
  height = 200,
84
  width = 200,
84
  width = 200,
85
  alt = '',
85
  alt = '',
86
  component = 'img',
86
  component = 'img',
87
  styles,
87
  styles = {},
88
  ...props
88
  ...props
89
}) {
89
}) {
90
  return (
90
  return (
91
    <CardMedia
91
    <CardMedia
92
      alt={alt}
92
      alt={alt}