mirror of
https://github.com/kingomarnajjar/flex-template-web.git
synced 2026-07-28 12:43:11 +10:00
Rename mobile select single filter lable prop
This commit is contained in:
parent
ad7a16dbcc
commit
8d444b310a
2 changed files with 4 additions and 4 deletions
|
|
@ -137,7 +137,7 @@ class SearchFiltersMobileComponent extends Component {
|
|||
const categoryFilter = categories ? (
|
||||
<SelectSingleFilterMobile
|
||||
urlParam={CATEGORY_URL_PARAM}
|
||||
paramLabel={categoryLabel}
|
||||
label={categoryLabel}
|
||||
onSelect={this.onSelectSingle}
|
||||
options={categories}
|
||||
initialValue={initialCategory}
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ class SelectSingleFilterMobile extends Component {
|
|||
}
|
||||
|
||||
render() {
|
||||
const { rootClassName, className, paramLabel, options, initialValue } = this.props;
|
||||
const { rootClassName, className, label, options, initialValue } = this.props;
|
||||
|
||||
const labelClass = initialValue ? css.filterLabelSelected : css.filterLabel;
|
||||
|
||||
|
|
@ -42,7 +42,7 @@ class SelectSingleFilterMobile extends Component {
|
|||
<div className={classes}>
|
||||
<div className={labelClass}>
|
||||
<button className={css.labelButton} onClick={this.toggleIsOpen}>
|
||||
<span className={labelClass}>{paramLabel}</span>
|
||||
<span className={labelClass}>{label}</span>
|
||||
</button>
|
||||
<button className={css.clearButton} onClick={e => this.selectOption(null, e)}>
|
||||
<FormattedMessage id={'SelectSingleFilterMobile.clear'} />
|
||||
|
|
@ -81,7 +81,7 @@ SelectSingleFilterMobile.propTypes = {
|
|||
rootClassName: string,
|
||||
className: string,
|
||||
urlParam: string.isRequired,
|
||||
paramLabel: string.isRequired,
|
||||
label: string.isRequired,
|
||||
onSelect: func.isRequired,
|
||||
|
||||
options: arrayOf(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue