index.tsx 735 B

12345678910111213141516171819202122232425
  1. import {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. renderDisabled={() => (
  13. <Layout.Page withPadding>
  14. <Alert type="warning">{t("You don't have access to this feature")}</Alert>
  15. </Layout.Page>
  16. )}
  17. >
  18. <RelocationOnboarding {...props} />
  19. </Feature>
  20. );
  21. }