Replace Button by Box in index
This commit is contained in:
@@ -2,7 +2,7 @@ import PropTypes from 'prop-types'
|
|||||||
import {useRouter} from 'next/router'
|
import {useRouter} from 'next/router'
|
||||||
import {
|
import {
|
||||||
Grid,
|
Grid,
|
||||||
Button
|
Box
|
||||||
} from '@mui/material'
|
} from '@mui/material'
|
||||||
|
|
||||||
export default function KatKayLa({tit, kantite, route}) {
|
export default function KatKayLa({tit, kantite, route}) {
|
||||||
@@ -10,9 +10,18 @@ export default function KatKayLa({tit, kantite, route}) {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<Grid item sx={{marginTop: 1}}>
|
<Grid item sx={{marginTop: 1}}>
|
||||||
<Button sx={{width: 100}} variant='outlined' onClick={() => router.push(route).then(() => window.scrollTo(0, 0))}>
|
<Box sx={{
|
||||||
|
width: 100,
|
||||||
|
padding: 1,
|
||||||
|
border: '1px solid rgba(76, 175, 80, 0.5)',
|
||||||
|
color: 'rgb(76, 175, 80)',
|
||||||
|
borderRadius: '4px',
|
||||||
|
textAlign: 'center',
|
||||||
|
cursor: 'pointer'
|
||||||
|
}} onClick={() => router.push(route).then(() => window.scrollTo(0, 0))}
|
||||||
|
>
|
||||||
{kantite} <br /> {tit}
|
{kantite} <br /> {tit}
|
||||||
</Button>
|
</Box>
|
||||||
</Grid>
|
</Grid>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user