UNPKG

keystone

Version:

Web Application Framework and Admin GUI / Content Management System built on Express.js and Mongoose

21 lines (16 loc) 410 B
/** * Renders an "Invalid Field Type" error */ import React from 'react'; const InvalidFieldType = function (props) { return ( <div className="alert alert-danger"> Invalid field type <strong>{props.type}</strong> at path <strong>{props.path}</strong> </div> ); }; InvalidFieldType.propTypes = { path: React.PropTypes.string, type: React.PropTypes.string, }; module.exports = InvalidFieldType;