2363 refactor the dialog component to use the new scope architecture (#2415)
* create Scope * refactor dialog manager * finished refactoring * modify closeDialog to use a recoilcallback * modify according to comments + add effet component * fix spreadsheet import stories
This commit is contained in:
@@ -3,7 +3,7 @@ import styled from '@emotion/styled';
|
||||
import { useSpreadsheetImportInitialStep } from '@/spreadsheet-import/hooks/useSpreadsheetImportInitialStep';
|
||||
import { useSpreadsheetImportInternal } from '@/spreadsheet-import/hooks/useSpreadsheetImportInternal';
|
||||
import { IconX } from '@/ui/display/icon/index';
|
||||
import { useDialog } from '@/ui/feedback/dialog//hooks/useDialog';
|
||||
import { useDialogManager } from '@/ui/feedback/dialog-manager/hooks/useDialogManager';
|
||||
import { IconButton } from '@/ui/input/button/components/IconButton';
|
||||
import { useStepBar } from '@/ui/navigation/step-bar/hooks/useStepBar';
|
||||
|
||||
@@ -33,7 +33,7 @@ export const ModalCloseButton = ({ onClose }: ModalCloseButtonProps) => {
|
||||
initialStep,
|
||||
});
|
||||
|
||||
const { enqueueDialog } = useDialog();
|
||||
const { enqueueDialog } = useDialogManager();
|
||||
|
||||
const handleClose = () => {
|
||||
if (activeStep === -1) {
|
||||
|
||||
Reference in New Issue
Block a user