mirror of
https://github.com/portainer/portainer.git
synced 2025-07-22 23:09:41 +02:00
refactor(ui/image-config): create react component [EE-5342] (#8856)
This commit is contained in:
parent
bf51f1b6c9
commit
10014ae171
34 changed files with 1464 additions and 84 deletions
11
app/react/components/ImageConfigFieldset/validation.ts
Normal file
11
app/react/components/ImageConfigFieldset/validation.ts
Normal file
|
@ -0,0 +1,11 @@
|
|||
import { bool, number, object, SchemaOf, string } from 'yup';
|
||||
|
||||
import { Values } from './types';
|
||||
|
||||
export function validation(): SchemaOf<Values> {
|
||||
return object({
|
||||
image: string().required('Image is required'),
|
||||
registryId: number().default(0),
|
||||
useRegistry: bool().default(false),
|
||||
});
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue