From 6c89d1c04637d67ce719dc1c95c13ac6ea9abf87 Mon Sep 17 00:00:00 2001 From: Mina Hanna Date: Thu, 12 Sep 2024 15:06:33 -0700 Subject: [PATCH] redirect to pending tab after import --- ui/src/components/ImportProgressResultPage/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/src/components/ImportProgressResultPage/index.tsx b/ui/src/components/ImportProgressResultPage/index.tsx index 63cadc7..84535ee 100644 --- a/ui/src/components/ImportProgressResultPage/index.tsx +++ b/ui/src/components/ImportProgressResultPage/index.tsx @@ -5,11 +5,11 @@ import styled from 'styled-components'; import { gridSize } from '@atlaskit/theme'; import { router } from '@forge/bridge'; +import { IMPORT_MODULE_KEY } from '../../constants'; import { useImportContext } from '../../hooks/useImportContext'; import { ApplicationState } from '../../routes'; import { ImportProgressBar } from '../ImportProgressBar'; import { ImportResult } from '../ImportResult'; -import { IMPORT_MODULE_KEY } from '../../constants'; const DoneButtonWrapper = styled.div` margin-top: ${gridSize() * 2}px; @@ -26,7 +26,7 @@ export const ImportProgressResultPage = ({ moduleKey }: Props) => { const handleNavigateWhenDone = () => { if (moduleKey === IMPORT_MODULE_KEY) { - router.navigate('/compass/components'); + router.navigate('/compass/components?status=pending'); } else { const path = `..${ApplicationState.CONNECTED}`; navigate(path, { replace: true });