Skip to content

Commit 66fcecf

Browse files
committed
create card component
1 parent 9835367 commit 66fcecf

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

src/pods/card/card-component.tsx

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
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+
}

src/pods/card/card.pod.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
import React from 'react';
22
import { useParams } from '@tanstack/react-router';
3+
import { CardComponent } from './card-component';
34

45
export const DeckPod: React.FC = () => {
56
const { deckId } = useParams({ strict: false });
67

7-
return <h1>Card component {deckId}</h1>
8+
return (
9+
<CardComponent />
10+
)
811
}

0 commit comments

Comments
 (0)