Răsfoiți Sursa

removed props validation from tsx

Mao 4 ani în urmă
părinte
comite
39699d71e8

+ 0 - 5
packages/app/src/components/SearchPage/SearchControl.tsx

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

+ 0 - 7
packages/app/src/components/SearchPage/SearchPageLayout.tsx

@@ -39,12 +39,5 @@ const SearchPageLayout: FC<Props> = (props: Props) => {
   );
 };
 
-SearchPageLayout.propTypes = {
-  SearchControl: PropTypes.element.isRequired,
-  SearchResultList: PropTypes.element.isRequired,
-  SearchResultContent: PropTypes.element.isRequired,
-  // searchResultMeta: PropTypes.object.isRequired, // TODO fix lint error
-  searchingKeyword: PropTypes.string.isRequired,
-};
 
 export default SearchPageLayout;

+ 0 - 5
packages/app/src/components/SearchPage/SearchResultContent.tsx

@@ -47,10 +47,5 @@ const SearchResultContent: FC<Props> = (props: Props) => {
   );
 };
 
-SearchResultContent.propTypes = {
-  appContainer: PropTypes.instanceOf(AppContainer).isRequired,
-  searchingKeyword: PropTypes.string.isRequired,
-  // selectedPage: PropTypes.object.isRequired, // todo fix lint error
-};
 
 export default SearchResultContent;