Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
render() {
const { value, description, validation = { isValid: null } } = this.props;
return (
{validation.isValid === false && (
{validation.message}
)}
{validation.isValid !== false && description && (
{description}
)}
);
}
}
const RightPanel = (props: Props) => {
let propList = clone(props);
if (!propList.hasOwnProperty("span")) {
propList.span = 7;
}
return (
{propList.children}
);
};
const LeftPanel = (props: Props) => {
let propList = clone(props);
if (!propList.hasOwnProperty("span")) {
propList.span = 5;
}
return (
{propList.children}
);
};