Proyectos de Subversion LeadersLinked - SPA

Rev

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

Rev 2268 Rev 2270
Línea 35... Línea 35...
35
export function WidgetHeader({
35
export function WidgetHeader({
36
  title = '',
36
  title = '',
37
  subheader = '',
37
  subheader = '',
38
  avatar = '',
38
  avatar = '',
39
  options = [],
39
  options = [],
-
 
40
  styles,
40
  ...props
41
  ...props
41
}) {
42
}) {
42
  const [anchorEl, setAnchorEl] = useState(null)
43
  const [anchorEl, setAnchorEl] = useState(null)
43
  const open = Boolean(anchorEl)
44
  const open = Boolean(anchorEl)
Línea 98... Línea 99...
98
        sx: { fontSize: '16px', fontWeight: 600, color: 'var(--title-color)' }
99
        sx: { fontSize: '16px', fontWeight: 600, color: 'var(--title-color)' }
99
      }}
100
      }}
100
      subheaderTypographyProps={{
101
      subheaderTypographyProps={{
101
        sx: { fontSize: '14px', color: 'var(--subtitle-color)' }
102
        sx: { fontSize: '14px', color: 'var(--subtitle-color)' }
102
      }}
103
      }}
-
 
104
      sx={styles}
103
      {...props}
105
      {...props}
104
    />
106
    />
105
  )
107
  )
106
}
108
}
Línea 107... Línea 109...
107
 
109
 
-
 
110
export function WidgetBody({ children, styles, ...props }) {
108
export function WidgetBody({ children, ...props }) {
111
  return (
-
 
112
    <CardContent sx={styles} {...props}>
-
 
113
      {children}
-
 
114
    </CardContent>
109
  return <CardContent {...props}>{children}</CardContent>
115
  )
Línea 110... Línea 116...
110
}
116
}
111
 
117
 
112
export function WidgetActions({ children, ...props }) {
118
export function WidgetActions({ children, styles, ...props }) {
113
  return (
119
  return (
114
    <CardActions disableSpacing {...props}>
120
    <CardActions sx={styles} disableSpacing {...props}>
115
      {children}
121
      {children}
116
    </CardActions>
122
    </CardActions>
Línea 121... Línea 127...
121
  src = '',
127
  src = '',
122
  height = 200,
128
  height = 200,
123
  width = 200,
129
  width = 200,
124
  alt = '',
130
  alt = '',
125
  component = 'img',
131
  component = 'img',
-
 
132
  styles,
126
  ...props
133
  ...props
127
}) {
134
}) {
128
  return (
135
  return (
129
    <CardMedia
136
    <CardMedia
130
      alt={alt}
137
      alt={alt}
131
      component={component}
138
      component={component}
132
      height={height}
139
      height={height}
133
      image={src}
140
      image={src}
134
      width={width}
141
      width={width}
-
 
142
      sx={styles}
135
      {...props}
143
      {...props}
136
    />
144
    />
137
  )
145
  )
138
}
146
}