index.tsx 891 B

12345678910111213141516171819202122232425
  1. import NoProjectMessage from 'sentry/components/noProjectMessage';
  2. import PageFiltersContainer from 'sentry/components/organizations/pageFilters/container';
  3. import SentryDocumentTitle from 'sentry/components/sentryDocumentTitle';
  4. import {t} from 'sentry/locale';
  5. import useRouteAnalyticsHookSetup from 'sentry/utils/routeAnalytics/useRouteAnalyticsHookSetup';
  6. import useOrganization from 'sentry/utils/useOrganization';
  7. type Props = {
  8. children: React.ReactNode;
  9. };
  10. function IssueListContainer({children}: Props) {
  11. const organization = useOrganization();
  12. useRouteAnalyticsHookSetup();
  13. return (
  14. <SentryDocumentTitle title={t('Issues')} orgSlug={organization.slug}>
  15. <PageFiltersContainer>
  16. <NoProjectMessage organization={organization}>{children}</NoProjectMessage>
  17. </PageFiltersContainer>
  18. </SentryDocumentTitle>
  19. );
  20. }
  21. export default IssueListContainer;