mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2025-02-17 08:31:23 -05:00
Fix errors
This commit is contained in:
parent
6c5d655bd5
commit
190cb7553e
1 changed files with 4 additions and 2 deletions
|
@ -11,6 +11,7 @@ const Button = require('../../components/forms/button.jsx');
|
||||||
const Form = require('../../components/forms/form.jsx');
|
const Form = require('../../components/forms/form.jsx');
|
||||||
const Grid = require('../../components/grid/grid.jsx');
|
const Grid = require('../../components/grid/grid.jsx');
|
||||||
const navigationActions = require('../../redux/navigation.js');
|
const navigationActions = require('../../redux/navigation.js');
|
||||||
|
const Select = require('../../components/forms/select.jsx');
|
||||||
const TitleBanner = require('../../components/title-banner/title-banner.jsx');
|
const TitleBanner = require('../../components/title-banner/title-banner.jsx');
|
||||||
const Tabs = require('../../components/tabs/tabs.jsx');
|
const Tabs = require('../../components/tabs/tabs.jsx');
|
||||||
|
|
||||||
|
@ -63,7 +64,9 @@ class Search extends React.Component {
|
||||||
mode = mode.substring(0, term.indexOf('&'));
|
mode = mode.substring(0, term.indexOf('&'));
|
||||||
}
|
}
|
||||||
mode = decodeURIComponent(mode.split('+').join(' '));
|
mode = decodeURIComponent(mode.split('+').join(' '));
|
||||||
this.state.mode = mode;
|
this.setState({
|
||||||
|
mode: mode
|
||||||
|
});
|
||||||
}
|
}
|
||||||
componentDidUpdate (prevProps) {
|
componentDidUpdate (prevProps) {
|
||||||
if (this.props.searchTerm !== prevProps.searchTerm) {
|
if (this.props.searchTerm !== prevProps.searchTerm) {
|
||||||
|
@ -227,7 +230,6 @@ class Search extends React.Component {
|
||||||
Search.propTypes = {
|
Search.propTypes = {
|
||||||
dispatch: PropTypes.func,
|
dispatch: PropTypes.func,
|
||||||
intl: intlShape,
|
intl: intlShape,
|
||||||
mode: PropTypes.string,
|
|
||||||
searchTerm: PropTypes.string
|
searchTerm: PropTypes.string
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue