fix: Rename search bar component
This commit is contained in:
@ -1,6 +1,6 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import PropTypes from 'prop-types';
|
import PropTypes from 'prop-types';
|
||||||
import FCCSearch from 'react-freecodecamp-search';
|
import SearchBar from '../search/searchBar/SearchBar';
|
||||||
|
|
||||||
import NavigationMenu from './components/NavMenu';
|
import NavigationMenu from './components/NavMenu';
|
||||||
import NavLogo from './components/NavLogo';
|
import NavLogo from './components/NavLogo';
|
||||||
@ -21,7 +21,7 @@ function Header(props) {
|
|||||||
<Link className='home-link' to='/'>
|
<Link className='home-link' to='/'>
|
||||||
<NavLogo />
|
<NavLogo />
|
||||||
</Link>
|
</Link>
|
||||||
{disableSettings ? null : <FCCSearch />}
|
{disableSettings ? null : <SearchBar />}
|
||||||
{navigationMenu ? (
|
{navigationMenu ? (
|
||||||
navigationMenu
|
navigationMenu
|
||||||
) : (
|
) : (
|
||||||
|
@ -38,7 +38,7 @@ const mapDispatchToProps = dispatch =>
|
|||||||
|
|
||||||
const placeholder = 'Search 8,000+ lessons, articles, and videos';
|
const placeholder = 'Search 8,000+ lessons, articles, and videos';
|
||||||
|
|
||||||
class FCCSearchBar extends Component {
|
class SearchBar extends Component {
|
||||||
constructor(props) {
|
constructor(props) {
|
||||||
super(props);
|
super(props);
|
||||||
|
|
||||||
@ -99,10 +99,10 @@ class FCCSearchBar extends Component {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
FCCSearchBar.displayName = 'FCCSearchBar';
|
SearchBar.displayName = 'SearchBar';
|
||||||
FCCSearchBar.propTypes = propTypes;
|
SearchBar.propTypes = propTypes;
|
||||||
|
|
||||||
export default connect(
|
export default connect(
|
||||||
mapStateToProps,
|
mapStateToProps,
|
||||||
mapDispatchToProps
|
mapDispatchToProps
|
||||||
)(FCCSearchBar);
|
)(SearchBar);
|
||||||
|
Reference in New Issue
Block a user