|
@@ -1,4 +1,4 @@
|
|
|
-import {browserHistory, RouteComponentProps} from 'react-router';
|
|
|
+import {browserHistory} from 'react-router';
|
|
|
import styled from '@emotion/styled';
|
|
|
|
|
|
import Alert from 'sentry/components/alert';
|
|
@@ -14,14 +14,13 @@ import SentryDocumentTitle from 'sentry/components/sentryDocumentTitle';
|
|
|
import {t} from 'sentry/locale';
|
|
|
import {space} from 'sentry/styles/space';
|
|
|
import useDeadRageSelectors from 'sentry/utils/replays/hooks/useDeadRageSelectors';
|
|
|
+import {useLocation} from 'sentry/utils/useLocation';
|
|
|
import useOrganization from 'sentry/utils/useOrganization';
|
|
|
import SelectorTable from 'sentry/views/replays/deadRageClick/selectorTable';
|
|
|
-import {DeadRageSelectorQueryParams} from 'sentry/views/replays/types';
|
|
|
|
|
|
-interface Props extends RouteComponentProps<{}, {}, DeadRageSelectorQueryParams> {}
|
|
|
-
|
|
|
-export default function DeadClickList({location}: Props) {
|
|
|
+export default function DeadClickList() {
|
|
|
const organization = useOrganization();
|
|
|
+ const location = useLocation();
|
|
|
const hasDeadClickFeature = organization.features.includes(
|
|
|
'session-replay-rage-dead-selectors'
|
|
|
);
|
|
@@ -60,19 +59,18 @@ export default function DeadClickList({location}: Props) {
|
|
|
<PageFiltersContainer>
|
|
|
<Layout.Body>
|
|
|
<Layout.Main fullWidth>
|
|
|
+ <PageFilterBar condensed>
|
|
|
+ <ProjectPageFilter resetParamsOnChange={['cursor']} />
|
|
|
+ <EnvironmentPageFilter resetParamsOnChange={['cursor']} />
|
|
|
+ <DatePageFilter alignDropdown="left" resetParamsOnChange={['cursor']} />
|
|
|
+ </PageFilterBar>
|
|
|
<LayoutGap>
|
|
|
- <PageFilterBar condensed>
|
|
|
- <ProjectPageFilter resetParamsOnChange={['cursor']} />
|
|
|
- <EnvironmentPageFilter resetParamsOnChange={['cursor']} />
|
|
|
- <DatePageFilter alignDropdown="left" resetParamsOnChange={['cursor']} />
|
|
|
- </PageFilterBar>
|
|
|
<SelectorTable
|
|
|
data={data}
|
|
|
isError={isError}
|
|
|
isLoading={isLoading}
|
|
|
location={location}
|
|
|
clickCountColumn={{key: 'count_dead_clicks', name: 'dead clicks'}}
|
|
|
- clickCountSortable
|
|
|
/>
|
|
|
</LayoutGap>
|
|
|
<PaginationNoMargin
|
|
@@ -93,7 +91,7 @@ export default function DeadClickList({location}: Props) {
|
|
|
|
|
|
const LayoutGap = styled('div')`
|
|
|
display: grid;
|
|
|
- gap: ${space(2)};
|
|
|
+ gap: ${space(1)};
|
|
|
`;
|
|
|
|
|
|
const PaginationNoMargin = styled(Pagination)`
|