mirror of
https://github.com/kingomarnajjar/flex-template-web.git
synced 2026-07-28 12:43:11 +10:00
Change SearchIcon refs to use IconSearch
This commit is contained in:
parent
e721b681be
commit
0d7b30c446
3 changed files with 9 additions and 9 deletions
|
|
@ -1,7 +1,7 @@
|
|||
import React, { PropTypes } from 'react';
|
||||
import { FormattedMessage } from 'react-intl';
|
||||
import classNames from 'classnames';
|
||||
import { SearchIcon, Button } from '../../components';
|
||||
import { IconSearch, Button } from '../../components';
|
||||
import { LocationSearchForm } from '../../containers';
|
||||
import { stringify } from '../../util/urlHelpers';
|
||||
import { createResourceLocatorString } from '../../util/routes';
|
||||
|
|
@ -36,7 +36,7 @@ const HeroSection = props => {
|
|||
<FormattedMessage id="HeroSection.subTitle" />
|
||||
</p>
|
||||
<Button className={css.mobileSearchButton} onClick={handleMobileSearchClick}>
|
||||
<SearchIcon rootClassName={css.searchIcon} />
|
||||
<IconSearch rootClassName={css.searchIcon} />
|
||||
<FormattedMessage id="HeroSection.mobileSearchButtonText" />
|
||||
</Button>
|
||||
<LocationSearchForm className={css.desktopSearchForm} onSubmit={handleSearchSubmit} />
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
import React, { PropTypes } from 'react';
|
||||
import classNames from 'classnames';
|
||||
|
||||
import css from './SearchIcon.css';
|
||||
import css from './IconSearch.css';
|
||||
|
||||
const SearchIcon = props => {
|
||||
const IconSearch = props => {
|
||||
const { rootClassName, className } = props;
|
||||
const classes = classNames(rootClassName || css.root, className);
|
||||
return (
|
||||
|
|
@ -28,16 +28,16 @@ const SearchIcon = props => {
|
|||
);
|
||||
};
|
||||
|
||||
SearchIcon.defaultProps = {
|
||||
IconSearch.defaultProps = {
|
||||
rootClassName: null,
|
||||
className: null,
|
||||
};
|
||||
|
||||
const { string } = PropTypes;
|
||||
|
||||
SearchIcon.propTypes = {
|
||||
IconSearch.propTypes = {
|
||||
rootClassName: string,
|
||||
className: string,
|
||||
};
|
||||
|
||||
export default SearchIcon;
|
||||
export default IconSearch;
|
||||
|
|
|
|||
|
|
@ -23,6 +23,7 @@ import IconEmailSent from './IconEmailSent/IconEmailSent';
|
|||
import IconEmailSuccess from './IconEmailSuccess/IconEmailSuccess';
|
||||
import IconKeys from './IconKeys/IconKeys';
|
||||
import IconKeysSuccess from './IconKeysSuccess/IconKeysSuccess';
|
||||
import IconSearch from './IconSearch/IconSearch';
|
||||
import ImageCarousel from './ImageCarousel/ImageCarousel';
|
||||
import ImageFromFile from './ImageFromFile/ImageFromFile';
|
||||
import ListingCard from './ListingCard/ListingCard';
|
||||
|
|
@ -49,7 +50,6 @@ import Promised from './Promised/Promised';
|
|||
import ResponsiveImage from './ResponsiveImage/ResponsiveImage';
|
||||
import RoutesProvider from './RoutesProvider/RoutesProvider';
|
||||
import SaleDetailsPanel from './SaleDetailsPanel/SaleDetailsPanel';
|
||||
import SearchIcon from './SearchIcon/SearchIcon';
|
||||
import SearchMap from './SearchMap/SearchMap';
|
||||
import SearchMapGroupLabel from './SearchMapGroupLabel/SearchMapGroupLabel';
|
||||
import SearchMapInfoCard from './SearchMapInfoCard/SearchMapInfoCard';
|
||||
|
|
@ -97,6 +97,7 @@ export {
|
|||
IconEmailSuccess,
|
||||
IconKeys,
|
||||
IconKeysSuccess,
|
||||
IconSearch,
|
||||
ImageCarousel,
|
||||
ImageFromFile,
|
||||
InlineTextButton,
|
||||
|
|
@ -124,7 +125,6 @@ export {
|
|||
ResponsiveImage,
|
||||
RoutesProvider,
|
||||
SaleDetailsPanel,
|
||||
SearchIcon,
|
||||
SearchMap,
|
||||
SearchMapGroupLabel,
|
||||
SearchMapInfoCard,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue