@@ -5,25 +5,31 @@ import DatePageFilter from 'sentry/components/datePageFilter';
5
5
import EnvironmentPageFilter from 'sentry/components/environmentPageFilter' ;
6
6
import PageFilterBar from 'sentry/components/organizations/pageFilterBar' ;
7
7
import ProjectPageFilter from 'sentry/components/projectPageFilter' ;
8
- import { space } from 'sentry/styles/space' ;
9
8
import { decodeScalar } from 'sentry/utils/queryString' ;
10
9
import { useLocation } from 'sentry/utils/useLocation' ;
11
10
import useOrganization from 'sentry/utils/useOrganization' ;
12
11
import usePageFilters from 'sentry/utils/usePageFilters' ;
13
12
import ReplaySearchBar from 'sentry/views/replays/list/replaySearchBar' ;
14
13
15
- function ReplaysFilters ( ) {
16
- const { selection} = usePageFilters ( ) ;
17
- const { pathname, query} = useLocation ( ) ;
18
- const organization = useOrganization ( ) ;
19
-
14
+ export function ReplaysFilters ( ) {
20
15
return (
21
- < FilterContainer >
16
+ < Container >
22
17
< PageFilterBar condensed >
23
18
< ProjectPageFilter resetParamsOnChange = { [ 'cursor' ] } />
24
19
< EnvironmentPageFilter resetParamsOnChange = { [ 'cursor' ] } />
25
20
< DatePageFilter alignDropdown = "left" resetParamsOnChange = { [ 'cursor' ] } />
26
21
</ PageFilterBar >
22
+ </ Container >
23
+ ) ;
24
+ }
25
+
26
+ export function ReplaysSearch ( ) {
27
+ const { selection} = usePageFilters ( ) ;
28
+ const { pathname, query} = useLocation ( ) ;
29
+ const organization = useOrganization ( ) ;
30
+
31
+ return (
32
+ < Container >
27
33
< ReplaySearchBar
28
34
organization = { organization }
29
35
pageFilters = { selection }
@@ -40,20 +46,11 @@ function ReplaysFilters() {
40
46
} ) ;
41
47
} }
42
48
/>
43
- </ FilterContainer >
49
+ </ Container >
44
50
) ;
45
51
}
46
52
47
- const FilterContainer = styled ( 'div' ) `
53
+ const Container = styled ( 'div' ) `
48
54
display: inline-grid;
49
- grid-template-columns: minmax(0, max-content) minmax(20rem, 1fr);
50
- gap: ${ space ( 2 ) } ;
51
55
width: 100%;
52
- margin-bottom: ${ space ( 2 ) } ;
53
-
54
- @media (max-width: ${ p => p . theme . breakpoints . large } ) {
55
- grid-template-columns: minmax(0, 1fr);
56
- }
57
56
` ;
58
-
59
- export default ReplaysFilters ;
0 commit comments