mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-23 07:38:07 -05:00
Merge pull request #1794 from LLK/hotfix/shim-formsy
[Master] ES6: Fixes for IE
This commit is contained in:
commit
3dd61cd1d4
2 changed files with 97 additions and 4 deletions
|
@ -100,7 +100,7 @@ class Search extends React.Component {
|
|||
</li>
|
||||
</a>
|
||||
);
|
||||
if (this.props.tab === type) {
|
||||
if (this.state.tab === type) {
|
||||
allTab = (
|
||||
<a href={`/search/${type}?q=${term}/`}>
|
||||
<li className="active">
|
||||
|
@ -137,7 +137,7 @@ class Search extends React.Component {
|
|||
<Grid
|
||||
cards
|
||||
showAvatar
|
||||
itemType={this.props.tab}
|
||||
itemType={this.state.tab}
|
||||
items={this.state.loaded}
|
||||
showFavorites={false}
|
||||
showLoves={false}
|
||||
|
@ -159,8 +159,7 @@ class Search extends React.Component {
|
|||
Search.propTypes = {
|
||||
dispatch: PropTypes.func,
|
||||
intl: intlShape,
|
||||
searchTerm: PropTypes.string,
|
||||
tab: PropTypes.string
|
||||
searchTerm: PropTypes.string
|
||||
};
|
||||
|
||||
const mapStateToProps = state => ({
|
||||
|
|
94
static/js/polyfill.min.js
vendored
94
static/js/polyfill.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue