index.tsx 785 B

12345678910111213141516171819202122232425
  1. import Feature from 'sentry/components/acl/feature';
  2. import {Alert} from 'sentry/components/alert';
  3. import * as Layout from 'sentry/components/layouts/thirds';
  4. import {t} from 'sentry/locale';
  5. import type {RouteComponentProps} from 'sentry/types/legacyReactRouter';
  6. import RelocationOnboarding from './relocation';
  7. type Props = RouteComponentProps<{step: string}, {}>;
  8. export default function RelocationOnboardingContainer(props: Props) {
  9. return (
  10. <Feature
  11. features={['relocation:enabled']}
  12. organizationAllowNull
  13. renderDisabled={() => (
  14. <Layout.Page withPadding>
  15. <Alert type="warning">{t("You don't have access to this feature")}</Alert>
  16. </Layout.Page>
  17. )}
  18. >
  19. <RelocationOnboarding {...props} />
  20. </Feature>
  21. );
  22. }