redirectToProject.tsx 306 B

12345678
  1. import ModalStore from 'sentry/stores/modalStore';
  2. export async function redirectToProject(newProjectSlug: string) {
  3. const mod = await import('sentry/components/modals/redirectToProject');
  4. const {default: Modal} = mod;
  5. ModalStore.openModal(deps => <Modal {...deps} slug={newProjectSlug} />, {});
  6. }