File tree Expand file tree Collapse file tree 3 files changed +6
-8
lines changed
shared/components/Contentful/TracksFilter Expand file tree Collapse file tree 3 files changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -61,9 +61,8 @@ export class TracksFilterInner extends Component {
61
61
/**
62
62
* Reset filter form to init value
63
63
*/
64
- onReset ( noClose ) {
64
+ onReset ( isMobile ) {
65
65
const {
66
- onClose,
67
66
sortBy,
68
67
onApply,
69
68
} = this . props ;
@@ -78,8 +77,7 @@ export class TracksFilterInner extends Component {
78
77
return o ;
79
78
} ) ,
80
79
} , ( ) => {
81
- if ( ! noClose ) onClose ( ) ;
82
- onApply ( this . state ) ;
80
+ if ( ! isMobile ) onApply ( this . state ) ;
83
81
} ) ;
84
82
}
85
83
@@ -110,7 +108,7 @@ export class TracksFilterInner extends Component {
110
108
< span > filter</ span >
111
109
< button
112
110
type = "button"
113
- onClick = { ( ) => this . onReset ( true ) }
111
+ onClick = { ( ) => this . onReset ( ) }
114
112
className = { `${ theme [ 'clear-filter' ] } ${ theme [ 'is-mobile-hidden' ] } ` }
115
113
>
116
114
< IconClearFilter /> CLEAR ALL FILTERS
@@ -202,7 +200,7 @@ export class TracksFilterInner extends Component {
202
200
< button
203
201
type = "button"
204
202
className = { theme [ 'btn-reset' ] }
205
- onClick = { ( ) => this . onReset ( ) }
203
+ onClick = { ( ) => this . onReset ( true ) }
206
204
> CLEAR
207
205
</ button >
208
206
< button
Original file line number Diff line number Diff line change @@ -128,7 +128,7 @@ $green-color: #137d60;
128
128
}
129
129
130
130
.track-author-container {
131
- max -width : none ;
131
+ min -width : 250 px ;
132
132
}
133
133
134
134
.track-date-container {
You can’t perform that action at this time.
0 commit comments