index.tsx 845 B

123456789101112131415161718192021222324252627
  1. import Feature from 'sentry/components/acl/feature';
  2. import {Alert} from 'sentry/components/core/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.Container>
  16. <Alert type="warning">{t("You don't have access to this feature")}</Alert>
  17. </Alert.Container>
  18. </Layout.Page>
  19. )}
  20. >
  21. <RelocationOnboarding {...props} />
  22. </Feature>
  23. );
  24. }