All files / app index.js

100% Statements 1/1
100% Branches 2/2
100% Functions 1/1
100% Lines 1/1
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26                        8x                          
// @flow
 
import React from 'react';
import Validation from './validation';
import ERROR_CODES from './data/error-codes';
 
type Props = {
    children: any,
    errorCodes?: Object
};
 
export default function HOC({ children, errorCodes, ...rest }: Props) {
    return (
        <Validation {...rest} errorCodes={errorCodes || ERROR_CODES}>
            {children}
        </Validation>
    );
}
 
export { default as ValidationInput } from './components/validation-input';
export { default as DisabledOnErrors } from './components/disabled-on-errors';
export {
    default as ValidationComponent
} from './components/validation-component';
export { RU as RU_ERROR_CODES } from './data/error-codes';