Przeglądaj źródła

removed search rel comps props func isReq

Mao 4 lat temu
rodzic
commit
0a8b699fea

+ 1 - 1
packages/app/src/components/SearchPage/SearchControl.tsx

@@ -31,7 +31,7 @@ const SearchControl: FC <Props> = (props: Props) => {
 SearchControl.propTypes = {
   searchingKeyword:  PropTypes.string.isRequired,
   appContainer: PropTypes.instanceOf(AppContainer).isRequired,
-  onSearchInvoked: PropTypes.func.isRequired,
+  onSearchInvoked: PropTypes.func,
 };
 
 export default SearchControl;

+ 1 - 1
packages/app/src/components/SearchPage/SearchPageForm.jsx

@@ -82,7 +82,7 @@ SearchPageForm.propTypes = {
   appContainer: PropTypes.instanceOf(AppContainer).isRequired,
 
   keyword: PropTypes.string,
-  onSearchFormChanged: PropTypes.func.isRequired,
+  onSearchFormChanged: PropTypes.func,
 };
 SearchPageForm.defaultProps = {
 };