Skip to content

Commit

Permalink
fix: fix crash on global search (#2424)
Browse files Browse the repository at this point in the history
* fix: fix crash on global search

* chore: trigger CI

Co-authored-by: LeandroTorresSicilia <jtorressicilia@gmail.com>
  • Loading branch information
HellWolf93 and LeandroTorresSicilia committed Jul 7, 2022
1 parent aec38aa commit 05d173e
Show file tree
Hide file tree
Showing 5 changed files with 330 additions and 113 deletions.
3 changes: 2 additions & 1 deletion library/styleguideComponents/UniversalSearch/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React from 'react';
import { SearchEntity, useLocalRecentSearches } from '@rainbow-modules/search';
import SearchEntity from '@rainbow-modules/search/lib/components/SearchEntity';
import useLocalRecentSearches from '@rainbow-modules/search/lib/hooks/useLocalRecentSearches';
import { Component, InteractiveExamples, YoutubeIcon } from '@rainbow-modules/icons';
import universalSearchAlgolia from './universalSearchAlgolia';
import PostItemSearchResult from './postItemSearchResult';
Expand Down
2 changes: 1 addition & 1 deletion library/styleguideComponents/UniversalSearch/styled.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import styled from 'styled-components';
import { GlobalSearch } from '@rainbow-modules/search';
import GlobalSearch from '@rainbow-modules/search/lib/components/GlobalSearch';
import { MediumIcon } from '@rainbow-modules/icons';

export const StyledGlobalSearch = styled(GlobalSearch)`
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@
"@fortawesome/react-fontawesome": "^0.1.2",
"@mdx-js/mdx": "^1.6.18",
"@rainbow-modules/icons": "^0.24.1-canary.2",
"@rainbow-modules/search": "^0.28.2-canary.1",
"@rainbow-modules/search": "^0.51.1",
"@stripe/stripe-js": "^1.3.0",
"@testing-library/react-hooks": "^3.2.1",
"@wdio/allure-reporter": "^7",
Expand Down Expand Up @@ -180,7 +180,7 @@
"react-redux": "^5.1.0",
"react-styleguidist": "^9.2.0",
"react-test-renderer": "^17.0.2",
"redux": "^4.0.1",
"redux": "^4.2.0",
"redux-form": "^7.4.2",
"sass-loader": "^7.1.0",
"shelljs": "^0.8.3",
Expand Down
1 change: 0 additions & 1 deletion src/components/Accordion/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ export default class Accordion extends Component {
[DOWN_KEY]: () => this.selectAccordionSection(RIGHT_SIDE),
[UP_KEY]: () => this.selectAccordionSection(LEFT_SIDE),
};

this.state = {
activeNames: props.activeSectionNames,
multiple: props.multiple,
Expand Down
Loading

0 comments on commit 05d173e

Please sign in to comment.