Răsfoiți Sursa

typescriptize

Yuki Takei 4 ani în urmă
părinte
comite
3c6b69968f
1 a modificat fișierele cu 0 adăugiri și 7 ștergeri
  1. 0 7
      packages/app/src/components/SearchTypeahead.tsx

+ 0 - 7
packages/app/src/components/SearchTypeahead.jsx → packages/app/src/components/SearchTypeahead.tsx

@@ -1,12 +1,10 @@
 import React from 'react';
 import React from 'react';
 import PropTypes from 'prop-types';
 import PropTypes from 'prop-types';
 
 
-import { noop } from 'lodash/noop';
 import { AsyncTypeahead } from 'react-bootstrap-typeahead';
 import { AsyncTypeahead } from 'react-bootstrap-typeahead';
 
 
 import { UserPicture, PageListMeta, PagePathLabel } from '@growi/ui';
 import { UserPicture, PageListMeta, PagePathLabel } from '@growi/ui';
 
 
-import AppContainer from '~/client/services/AppContainer';
 import { apiGet } from '~/client/util/apiv1-client';
 import { apiGet } from '~/client/util/apiv1-client';
 
 
 class SearchTypeahead extends React.Component {
 class SearchTypeahead extends React.Component {
@@ -233,8 +231,6 @@ class SearchTypeahead extends React.Component {
  * Properties
  * Properties
  */
  */
 SearchTypeahead.propTypes = {
 SearchTypeahead.propTypes = {
-  appContainer: PropTypes.instanceOf(AppContainer).isRequired,
-
   onSearchSuccess: PropTypes.func,
   onSearchSuccess: PropTypes.func,
   onSearchError:   PropTypes.func,
   onSearchError:   PropTypes.func,
   onChange:        PropTypes.func,
   onChange:        PropTypes.func,
@@ -256,9 +252,6 @@ SearchTypeahead.propTypes = {
  * Properties
  * Properties
  */
  */
 SearchTypeahead.defaultProps = {
 SearchTypeahead.defaultProps = {
-  onSearchSuccess: noop,
-  onSearchError:   noop,
-  onChange:        noop,
   placeholder:     '',
   placeholder:     '',
   keywordOnInit:   '',
   keywordOnInit:   '',
   behaviorOfResetBtn: 'restore',
   behaviorOfResetBtn: 'restore',