From 7ec964dd3ad3280e0d8850ea8580b7757310a2bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20FAMIBELLE-PRONZOLA?= Date: Wed, 25 May 2022 06:38:05 +0400 Subject: [PATCH] Improve KatKayLa component --- components/kat-kay-la.js | 35 ++++++++++------------------------- 1 file changed, 10 insertions(+), 25 deletions(-) diff --git a/components/kat-kay-la.js b/components/kat-kay-la.js index ce5aab0..d092373 100644 --- a/components/kat-kay-la.js +++ b/components/kat-kay-la.js @@ -1,44 +1,29 @@ import PropTypes from 'prop-types' import {useRouter} from 'next/router' -import { - Card, - CardContent, - CardActionArea, - Typography, - Grid -} from '@mui/material' -import {styled} from '@mui/material/styles' - -const PREFIX = 'kat-kay-la' - -const classes = { - root: `${PREFIX}-root`, -} - -const StyledGrid = styled(Grid)({ - [`& .${classes.root}`]: { - minWidth: 275 - }, -}) +import Grid from '@mui/material/Grid' +import Card from '@mui/material/Card' +import CardActionArea from '@mui/material/CardActionArea' +import CardContent from '@mui/material/CardContent' +import Typography from '@mui/material/Typography' export default function KatKayLa({tit, kantite, href, as}) { const router = useRouter() return ( - - + + router.push(href, as).then(() => window.scrollTo(0, 0))}> - + {kantite} - + {tit} - + ) }