File tree Expand file tree Collapse file tree 2 files changed +20
-1
lines changed Expand file tree Collapse file tree 2 files changed +20
-1
lines changed Original file line number Diff line number Diff line change
1
+ import React from 'react' ;
2
+ import Typography from '@mui/material/Typography' ;
3
+ import Button from '@mui/material/Button' ;
4
+
5
+ export const CardComponent : React . FC = ( ) => {
6
+
7
+ return (
8
+ < div >
9
+ < h1 > 1/8</ h1 >
10
+ < Typography > Soccer</ Typography >
11
+ < Button onClick = { ( ) => {
12
+ console . log ( 'hola' )
13
+ } } > Ver respuesta</ Button >
14
+ </ div >
15
+ )
16
+ }
Original file line number Diff line number Diff line change 1
1
import React from 'react' ;
2
2
import { useParams } from '@tanstack/react-router' ;
3
+ import { CardComponent } from './card-component' ;
3
4
4
5
export const DeckPod : React . FC = ( ) => {
5
6
const { deckId } = useParams ( { strict : false } ) ;
6
7
7
- return < h1 > Card component { deckId } </ h1 >
8
+ return (
9
+ < CardComponent />
10
+ )
8
11
}
You can’t perform that action at this time.
0 commit comments