[2] fix required
problem for project fields
This commit is contained in:
@ -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>
|
||||
|
Reference in New Issue
Block a user