@@ -21,7 +21,6 @@ import { useEffect, useState } from "react";
21
21
import { useSearchParams } from "react-router-dom" ;
22
22
import { DataError } from "../common" ;
23
23
import { useCollections } from "../collections/api" ;
24
- import { PlusLoginBanner } from "../common/login-banner" ;
25
24
import React from "react" ;
26
25
27
26
const LazyCompatTable = React . lazy (
@@ -191,26 +190,22 @@ function UpdatesLayout() {
191
190
</ Container >
192
191
</ header >
193
192
< Container >
194
- < SearchFilter
195
- filters = { filters }
196
- sorts = { SORTS }
197
- isDisabled = { ! canFilter }
198
- onChange = { ( key , newValue , oldValue ) =>
199
- gleanClick (
200
- `${ PLUS_UPDATES . FILTER_CHANGE } _${ key } : ${
201
- oldValue ?? "(default)"
202
- } -> ${ newValue ?? "(default)" } `
203
- )
204
- }
205
- />
206
-
207
- { user && ! user . isAuthenticated && (
208
- < PlusLoginBanner gleanPrefix = { PLUS_UPDATES . MDN_PLUS } >
209
- Want to use filters?
210
- </ PlusLoginBanner >
193
+ { canFilter && (
194
+ < SearchFilter
195
+ filters = { filters }
196
+ sorts = { SORTS }
197
+ isDisabled = { ! canFilter }
198
+ onChange = { ( key , newValue , oldValue ) =>
199
+ gleanClick (
200
+ `${ PLUS_UPDATES . FILTER_CHANGE } _${ key } : ${
201
+ oldValue ?? "(default)"
202
+ } -> ${ newValue ?? "(default)" } `
203
+ )
204
+ }
205
+ />
211
206
) }
212
207
213
- { user && user . isAuthenticated && hasFilters && (
208
+ { canFilter && hasFilters && (
214
209
< Button
215
210
type = "action"
216
211
extraClasses = "reset-filters"
0 commit comments