Skip to content

Commit

Permalink
refactor(core/validation): Move ValidationMessage from core/validatio…
Browse files Browse the repository at this point in the history
…n to core/presentation/forms/validation
  • Loading branch information
christopherthielen committed Oct 10, 2019
1 parent 8518286 commit b553465
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ import * as classNames from 'classnames';

import { NgReact } from 'core/reactShims';
import { Application } from 'core/application';
import { useData } from 'core/presentation';
import { ValidationMessage } from 'core/validation';
import { useData, ValidationMessage } from 'core/presentation';
import { Spinner } from 'core/widgets';
import { ManagedReader, ManagedWriter } from 'core/managed';

Expand Down
2 changes: 0 additions & 2 deletions app/scripts/modules/core/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,6 @@ export * from './task';

export * from './utils';

export * from './validation';

export * from './widgets';

export * from './yamlEditor';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ import {
ReactSelectInput,
SpinFormik,
Tooltip,
ValidationMessage,
WatchValue,
} from 'core/presentation';
import { Registry } from 'core/registry';
import { ValidationMessage } from 'core/validation';

import { RunAsUserInput } from './RunAsUser';
import './Trigger.less';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as React from 'react';
import { Modal } from 'react-bootstrap';

import { ValidationMessage } from 'core/validation';
import { ValidationMessage } from '../../validation';

import { ISpelError } from './evaluateExpression';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import * as React from 'react';
import { ICategorizedErrors, IValidationCategory } from '../presentation/forms/validation';

import { ICategorizedErrors, IValidationCategory } from './categories';
import './ValidationMessage.less';

const containerClassNames: ICategorizedErrors = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
export * from './FormValidator';
export * from './FormValidatorField';
export * from './ValidationMessage';
export * from './categories';
export * from './useValidationData';
export * from './validators';
export * from './validation';
export * from './FormValidator';
export * from './FormValidatorField';
export * from './validators';
1 change: 0 additions & 1 deletion app/scripts/modules/core/src/validation/index.ts

This file was deleted.

0 comments on commit b553465

Please sign in to comment.