feat: change gif speed

This commit is contained in:
Ibrahima G. Coulibaly
2024-06-27 12:39:38 +01:00
parent 13f5d258dc
commit f4e1c06270
18 changed files with 420 additions and 104 deletions

View File

@@ -1,18 +1,20 @@
import { Box, TextField } from '@mui/material';
import { Box, TextField, TextFieldProps } from '@mui/material';
import Typography from '@mui/material/Typography';
import React from 'react';
type OwnProps = {
description: string;
value: string | number;
onChange: (value: string) => void;
placeholder?: string;
};
const TextFieldWithDesc = ({
description,
value,
onChange,
placeholder
}: {
description: string;
value: string;
onChange: (value: string) => void;
placeholder?: string;
}) => {
placeholder,
...props
}: TextFieldProps & OwnProps) => {
return (
<Box>
<TextField
@@ -20,6 +22,7 @@ const TextFieldWithDesc = ({
sx={{ backgroundColor: 'white' }}
value={value}
onChange={(event) => onChange(event.target.value)}
{...props}
/>
<Typography fontSize={12} mt={1}>
{description}