Skip to content

Commit

Permalink
Merge pull request #120 from atlassian-labs/noissue/redirect-to-pendi…
Browse files Browse the repository at this point in the history
…ng-tab-after-import

redirect to pending tab after import
  • Loading branch information
mhanna15 committed Sep 12, 2024
2 parents a605562 + 6c89d1c commit 886b6b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ui/src/components/ImportProgressResultPage/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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 });
Expand Down

0 comments on commit 886b6b3

Please sign in to comment.