ant-design/components/validation/index.jsx
Bruce Mitchener 11c0a6a203 Name classes without Ant* prefix.
Where necessary, prefix the classes imported from react-component
with 'Rc' rather than prefixing the Ant classes with 'Ant'.

The prefixing of Ant classes wasn't consistent and isn't necessary
in many cases.
2016-03-21 20:16:38 +07:00

16 lines
438 B
JavaScript

import React from 'react';
import warning from 'warning';
export default class Validation extends React.Component {
render() {
warning(false, '`Validation` is removed, please use `Form` which has supported validation after antd@0.12.0,' +
' or you can just import Validation from \'rc-form-validation\' for compatibility');
return null;
}
}
Validation.Validator = () => {};
Validation.FieldMixin = {
setField() {},
};