mirror of
https://github.com/wassname/talk.git
synced 2026-07-03 21:14:45 +08:00
aa32fcaea6
* feat: more stable css classes * chore: renamee ValidationMessageHelper to FormValidationMessage * chore: Rename FormValidationMessage to FieldValidationMessage * feat: more css classes, icons use <i> tag * feat: stable classnames for gdpr features * feat: more css stable classnames
17 lines
534 B
TypeScript
17 lines
534 B
TypeScript
import cn from "classnames";
|
|
import { withProps } from "recompose";
|
|
|
|
import { ValidationMessage } from "coral-framework/lib/form";
|
|
import CLASSES from "coral-stream/classes";
|
|
import { PropTypesOf } from "coral-ui/types";
|
|
|
|
/**
|
|
* Like <ValidationMessage /> from the form library but with a stable css classname.
|
|
*/
|
|
export default withProps<
|
|
Partial<PropTypesOf<typeof ValidationMessage>>,
|
|
PropTypesOf<typeof ValidationMessage>
|
|
>(({ className }) => ({
|
|
className: cn(className, CLASSES.validationMessage),
|
|
}))(ValidationMessage);
|