All files / ru 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                        1x                      
// @flow
 
import React from 'react';
import Validation from '../app/validation';
import { RU as ERROR_CODES } from '../app/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 '../app/components/validation-input';
export {
    default as DisabledOnErrors
} from '../app/components/disabled-on-errors';