Skip to content

Commit 1eac8fb

Browse files
committed
use Grid component
1 parent da7bcc4 commit 1eac8fb

1 file changed

Lines changed: 8 additions & 27 deletions

File tree

static/app/views/performance/transactionSummary/transactionEvents/eapSampledEventsTab.tsx

Lines changed: 8 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import {useMemo} from 'react';
2-
import styled from '@emotion/styled';
32
import type {Location} from 'history';
43
import omit from 'lodash/omit';
54

65
import {LinkButton} from '@sentry/scraps/button';
76
import {CompactSelect} from '@sentry/scraps/compactSelect';
7+
import {Grid} from '@sentry/scraps/layout';
88
import {OverlayTrigger} from '@sentry/scraps/overlayTrigger';
99

1010
import * as Layout from 'sentry/components/layouts/thirds';
@@ -169,21 +169,19 @@ function FilterBar(props: FilterBarProps) {
169169
const datePageFilterProps = useDatePageFilterProps(maxPickableDays);
170170

171171
return (
172-
<FilterActions>
172+
<Grid gap="xl" marginBottom="xl" columns={{sm: 'auto 1fr auto auto'}}>
173173
<PageFilterBar condensed>
174174
<EnvironmentPageFilter />
175175
<DatePageFilter {...datePageFilterProps} />
176176
</PageFilterBar>
177-
<StyledSearchBarWrapper>
178-
<SearchBar
179-
projects={projectIds ?? []}
180-
initialQuery={query}
181-
onSearch={handleSearch}
182-
/>
183-
</StyledSearchBarWrapper>
177+
<SearchBar
178+
projects={projectIds ?? []}
179+
initialQuery={query}
180+
onSearch={handleSearch}
181+
/>
184182
<PercentileSelect {...props} />
185183
<OpenInExploreButton {...props} />
186-
</FilterActions>
184+
</Grid>
187185
);
188186
}
189187

@@ -286,23 +284,6 @@ function OpenInExploreButton({
286284
return <LinkButton to={exploreUrl}>{t('Open in Explore')}</LinkButton>;
287285
}
288286

289-
const FilterActions = styled('div')`
290-
display: grid;
291-
gap: ${p => p.theme.space.xl};
292-
margin-bottom: ${p => p.theme.space.xl};
293-
294-
@media (min-width: ${p => p.theme.breakpoints.sm}) {
295-
grid-template-columns: auto 1fr auto auto;
296-
}
297-
`;
298-
299-
const StyledSearchBarWrapper = styled('div')`
300-
@media (min-width: ${p => p.theme.breakpoints.xl}) {
301-
order: initial;
302-
grid-column: auto;
303-
}
304-
`;
305-
306287
function useMaxDuration(
307288
transactionName: string,
308289
pageFilters: PageFilters,

0 commit comments

Comments
 (0)