mirror of
https://github.com/portainer/portainer.git
synced 2025-07-24 15:59:41 +02:00
feat(namespace): migrate create ns to react [EE-2226] (#10377)
This commit is contained in:
parent
31bcba96c6
commit
7218eb0892
83 changed files with 1869 additions and 358 deletions
|
@ -7,8 +7,9 @@ import { ButtonSelector } from '@@/form-components/ButtonSelector/ButtonSelector
|
|||
import { Button } from '@@/buttons';
|
||||
import { Card } from '@@/Card';
|
||||
import { Widget } from '@@/Widget';
|
||||
import { isErrorType } from '@@/form-components/formikUtils';
|
||||
|
||||
import { isErrorType, newPort } from '../utils';
|
||||
import { newPort } from '../utils';
|
||||
import {
|
||||
ServiceFormValues,
|
||||
ServicePort,
|
||||
|
|
|
@ -8,8 +8,9 @@ import { Button } from '@@/buttons';
|
|||
import { Widget } from '@@/Widget';
|
||||
import { Card } from '@@/Card';
|
||||
import { InputGroup } from '@@/form-components/InputGroup';
|
||||
import { isErrorType } from '@@/form-components/formikUtils';
|
||||
|
||||
import { isErrorType, newPort } from '../utils';
|
||||
import { newPort } from '../utils';
|
||||
import { ContainerPortInput } from '../components/ContainerPortInput';
|
||||
import {
|
||||
ServiceFormValues,
|
||||
|
|
|
@ -8,8 +8,9 @@ import { Button } from '@@/buttons';
|
|||
import { Widget } from '@@/Widget';
|
||||
import { Card } from '@@/Card';
|
||||
import { InputGroup } from '@@/form-components/InputGroup';
|
||||
import { isErrorType } from '@@/form-components/formikUtils';
|
||||
|
||||
import { isErrorType, newPort } from '../utils';
|
||||
import { newPort } from '../utils';
|
||||
import { ContainerPortInput } from '../components/ContainerPortInput';
|
||||
import {
|
||||
ServiceFormValues,
|
||||
|
|
|
@ -1,15 +1,7 @@
|
|||
import { FormikErrors } from 'formik';
|
||||
|
||||
import { Ingress } from '@/react/kubernetes/ingresses/types';
|
||||
|
||||
import { ServiceFormValues, ServicePort } from './types';
|
||||
|
||||
export function isErrorType<T>(
|
||||
error: string | FormikErrors<T> | undefined
|
||||
): error is FormikErrors<T> {
|
||||
return error !== undefined && typeof error !== 'string';
|
||||
}
|
||||
|
||||
export function newPort(serviceName?: string) {
|
||||
return {
|
||||
port: undefined,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue