import styled from '@emotion/styled'; import campingImg from 'sentry-images/spot/onboarding-preview.svg'; import {navigateTo} from 'sentry/actionCreators/navigation'; import ExternalLink from 'sentry/components/links/externalLink'; import {t, tct} from 'sentry/locale'; import {space} from 'sentry/styles/space'; import useOrganization from 'sentry/utils/useOrganization'; import useRouter from 'sentry/utils/useRouter'; function NoIssuesMatched() { const organization = useOrganization(); const router = useRouter(); return ( Camping spot illustration

{t('No issues match your search')}

{t('If this is unexpected, check out these tips:')}
  • {t('Double check your project, environment, and date filters')}
  • {tct('Make sure your search has the right syntax. [link]', { link: ( {t('Learn more')} ), })}
  • {tct( "Check your [filterSettings: inbound data filters] to make sure the events aren't being filtered out", { filterSettings: ( { event.preventDefault(); const url = `/settings/${organization.slug}/projects/:projectId/filters/data-filters/`; if (router) { navigateTo(url, router); } }} /> ), } )}
  • ); } export default NoIssuesMatched; const Wrapper = styled('div')` display: flex; justify-content: center; font-size: ${p => p.theme.fontSizeLarge}; border-radius: 0 0 3px 3px; padding: 40px ${space(3)}; min-height: 260px; @media (max-width: ${p => p.theme.breakpoints.small}) { flex-direction: column; align-items: center; padding: ${space(3)}; text-align: center; } `; const MessageContainer = styled('div')` align-self: center; max-width: 480px; margin-left: 40px; @media (max-width: ${p => p.theme.breakpoints.small}) { margin: 0; } `; const Tips = styled('ul')` text-align: left; `;