cacheLandingPage.tsx 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. import React from 'react';
  2. import {Breadcrumbs} from 'sentry/components/breadcrumbs';
  3. import FeatureBadge from 'sentry/components/featureBadge';
  4. import FloatingFeedbackWidget from 'sentry/components/feedback/widget/floatingFeedbackWidget';
  5. import * as Layout from 'sentry/components/layouts/thirds';
  6. import {t} from 'sentry/locale';
  7. import useOrganization from 'sentry/utils/useOrganization';
  8. import {normalizeUrl} from 'sentry/utils/withDomainRequired';
  9. import {MODULE_TITLE, RELEASE_LEVEL} from 'sentry/views/performance/cache/settings';
  10. import * as ModuleLayout from 'sentry/views/performance/moduleLayout';
  11. import {ModulePageProviders} from 'sentry/views/performance/modulePageProviders';
  12. export function CacheLandingPage() {
  13. const organization = useOrganization();
  14. return (
  15. <React.Fragment>
  16. <Layout.Header>
  17. <Layout.HeaderContent>
  18. <Breadcrumbs
  19. crumbs={[
  20. {
  21. label: t('Performance'),
  22. to: normalizeUrl(`/organizations/${organization.slug}/performance/`),
  23. preservePageFilters: true,
  24. },
  25. {
  26. label: MODULE_TITLE,
  27. },
  28. ]}
  29. />
  30. <Layout.Title>
  31. {MODULE_TITLE}
  32. <FeatureBadge type={RELEASE_LEVEL} />
  33. </Layout.Title>
  34. </Layout.HeaderContent>
  35. </Layout.Header>
  36. <Layout.Body>
  37. <Layout.Main fullWidth>
  38. <FloatingFeedbackWidget />
  39. <ModuleLayout.Layout>
  40. <ModuleLayout.Full>
  41. <div>TEST</div>
  42. </ModuleLayout.Full>
  43. </ModuleLayout.Layout>
  44. </Layout.Main>
  45. </Layout.Body>
  46. </React.Fragment>
  47. );
  48. }
  49. function LandingPageWithProviders() {
  50. return (
  51. <ModulePageProviders
  52. title={[t('Performance'), MODULE_TITLE].join(' — ')}
  53. baseURL="/performance/cache"
  54. features="performance-cache-view"
  55. >
  56. <CacheLandingPage />
  57. </ModulePageProviders>
  58. );
  59. }
  60. export default LandingPageWithProviders;