Add the plain string component forgot last time.

This commit is contained in:
Aditya Toshniwal 2021-08-10 15:31:16 +05:30 committed by Akshay Joshi
parent 314fcabbeb
commit 1ce6c2aee1

View File

@ -900,6 +900,18 @@ FormInputColor.propTypes = {
testcid: PropTypes.string,
};
export function PlainString({controlProps, value}) {
let finalValue = value;
if(controlProps?.formatter) {
finalValue = controlProps.formatter.fromRaw(finalValue);
}
return <span>{finalValue}</span>;
}
PlainString.propTypes = {
controlProps: PropTypes.object,
value: PropTypes.any,
};
export function FormNote({text, className}) {
const classes = useStyles();
return (