fix: radio and list sort init

This commit is contained in:
Ibrahima G. Coulibaly
2024-06-27 20:27:03 +01:00
parent 8650703266
commit a6eb5d59e9
11 changed files with 180 additions and 79 deletions

View File

@@ -3,7 +3,7 @@ import Typography from '@mui/material/Typography';
import React from 'react';
type OwnProps = {
description: string;
description?: string;
value: string | number;
onChange: (value: string) => void;
placeholder?: string;
@@ -24,9 +24,11 @@ const TextFieldWithDesc = ({
onChange={(event) => onChange(event.target.value)}
{...props}
/>
<Typography fontSize={12} mt={1}>
{description}
</Typography>
{description && (
<Typography fontSize={12} mt={1}>
{description}
</Typography>
)}
</Box>
);
};