index.tsx 768 B

1234567891011121314151617181920212223242526
  1. import type {RouteComponentProps} from 'react-router';
  2. import Feature from 'sentry/components/acl/feature';
  3. import {Alert} from 'sentry/components/alert';
  4. import * as Layout from 'sentry/components/layouts/thirds';
  5. import {t} from 'sentry/locale';
  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. }