diff --git a/src/components/Molecules/SimpleSchoolLookup/SimpleSchoolLookup.js b/src/components/Molecules/SimpleSchoolLookup/SimpleSchoolLookup.js index 8b71329ce..094f98eac 100644 --- a/src/components/Molecules/SimpleSchoolLookup/SimpleSchoolLookup.js +++ b/src/components/Molecules/SimpleSchoolLookup/SimpleSchoolLookup.js @@ -41,14 +41,14 @@ const schoolToString = school => `${school.name}, ${school.post_code}`; * @returns {JSX.Element} * @constructor */ -const SimpleSchoolLookup = ({ onSelect, ...rest }) => ( +const SimpleSchoolLookup = ({ onSelect, noResultsMessage, ...rest }) => ( ( /> ); +SimpleSchoolLookup.defaultProps = { + noResultsMessage: 'Sorry, we could not find anything matching your search; please use the manual entry option.' +}; + SimpleSchoolLookup.propTypes = { - onSelect: PropTypes.func.isRequired + onSelect: PropTypes.func.isRequired, + noResultsMessage: PropTypes.string }; export default SimpleSchoolLookup;