feat: make tool responsive

This commit is contained in:
Ibrahima G. Coulibaly
2024-06-26 00:47:21 +01:00
parent 21c6b8bc1f
commit dccfe16435
6 changed files with 56 additions and 41 deletions

View File

@@ -1,6 +1,7 @@
import Typography from '@mui/material/Typography';
import React, { ReactNode } from 'react';
import { Box, Stack } from '@mui/material';
import Grid from '@mui/material/Grid';
interface ToolOptionGroup {
title: string;
@@ -13,15 +14,15 @@ export default function ToolOptionGroups({
groups: ToolOptionGroup[];
}) {
return (
<Stack direction={'row'} spacing={2}>
<Grid container spacing={2}>
{groups.map((group) => (
<Box key={group.title}>
<Grid item xs={12} md={6} key={group.title}>
<Typography mb={1} fontSize={22}>
{group.title}
</Typography>
{group.component}
</Box>
</Grid>
))}
</Stack>
</Grid>
);
}