[2] fix required problem for project fields

This commit is contained in:
maxim
2025-03-28 02:26:18 +03:00
parent 754569b41d
commit d2e243ba64
6 changed files with 29 additions and 30 deletions

View File

@ -27,12 +27,12 @@ export const StationEdit = () => {
fullWidth
InputLabelProps={{shrink: true}}
type="text"
label={'Название'}
label={'Название *'}
name="name"
/>
<TextField
{...register('description', {
required: 'Это поле является обязательным',
// required: 'Это поле является обязательным',
})}
error={!!(errors as any)?.description}
helperText={(errors as any)?.description?.message}
@ -54,7 +54,7 @@ export const StationEdit = () => {
fullWidth
InputLabelProps={{shrink: true}}
type="number"
label={'Широта'}
label={'Широта *'}
name="latitude"
/>
<TextField
@ -68,7 +68,7 @@ export const StationEdit = () => {
fullWidth
InputLabelProps={{shrink: true}}
type="number"
label={'Долгота'}
label={'Долгота *'}
name="longitude"
/>
</Box>