Proyectos de Subversion LeadersLinked - SPA

Rev

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

Rev 3719 Rev 3741
Línea 1... Línea 1...
1
import React from 'react';
1
import React from 'react';
2
import { LinearProgress } from '@mui/material';
2
import { LinearProgress } from '@mui/material';
Línea 3... Línea 3...
3
 
3
 
Línea 4... Línea 4...
4
import { Card, CardContent, CardHeader, CardMedia } from '@shared/components';
4
import { Card, CardContent, CardHeader, CardMedia } from '@shared/components';
5
 
5
 
6
export function TopicCard({ topic: { name, image, progress } }) {
6
export function TopicCard({ topic: { name, image, progress, onClick } }) {
-
 
7
  return (
-
 
8
    <Card
-
 
9
      sx={{
-
 
10
        display: 'grid',
-
 
11
        gridTemplateRows: 'auto 1fr auto',
-
 
12
        cursor: 'pointer',
-
 
13
        width: '100%',
-
 
14
        height: '100%'
-
 
15
      }}
7
  return (
16
      onClick={onClick}
8
    <Card>
17
    >
Línea 9... Línea 18...
9
      <CardHeader title={name} />
18
      <CardHeader title={name} />
10
      <CardMedia src={image} />
19
      <CardMedia src={image} style={{ height: '100%', maxHeight: '300px' }} />
Línea 11... Línea 20...
11
 
20