Update grid layout

This commit is contained in:
viown
2025-06-10 21:46:49 +03:00
parent 0934889cc8
commit d01089a5b2
2 changed files with 19 additions and 24 deletions
@@ -4,7 +4,6 @@ import Typography from '@mui/material/Typography';
import ChevronRight from '@mui/icons-material/ChevronRight';
import React from 'react';
import { Link as RouterLink } from 'react-router-dom';
import Link from '@mui/material/Link';
type IProps = {
title: string;
@@ -15,26 +14,21 @@ type IProps = {
const Widget = ({ title, href, children }: IProps) => {
return (
<Box>
<Link
<Button
component={RouterLink}
to={href}
variant='text'
color='inherit'
endIcon={<ChevronRight />}
sx={{
marginTop: 1,
marginBottom: 1
}}
>
<Button
LinkComponent={RouterLink}
variant='text'
color='inherit'
endIcon={<ChevronRight />}
sx={{
marginTop: 1,
marginBottom: 1
}}
>
<Typography variant='h3' component='span'>
{title}
</Typography>
</Button>
</Link>
<Typography variant='h3' component='span'>
{title}
</Typography>
</Button>
{children}
</Box>