add schema change & table schema view & create new table schema selection

This commit is contained in:
Guy Ben-Aharon
2024-09-22 14:48:44 +03:00
committed by Guy Ben-Aharon
parent 98f429f9cc
commit 7928705f18
15 changed files with 360 additions and 60 deletions

View File

@@ -1,8 +1,6 @@
import { Dialog, DialogContent } from '@/components/dialog/dialog';
import { useDialog } from '@/hooks/use-dialog';
import type { DatabaseType } from '@/lib/domain/database-type';
import type { DialogProps } from '@radix-ui/react-dialog';
import React, { useCallback, useEffect, useState } from 'react';
import { ImportDatabase } from '../common/import-database/import-database';
import type { DatabaseEdition } from '@/lib/domain/database-edition';
@@ -13,9 +11,9 @@ import { useChartDB } from '@/hooks/use-chartdb';
import { useRedoUndoStack } from '@/hooks/use-redo-undo-stack';
import { Trans, useTranslation } from 'react-i18next';
import { useReactFlow } from '@xyflow/react';
import type { BaseDialogProps } from '../common/base-dialog-props';
export interface ImportDatabaseDialogProps {
dialog: DialogProps;
export interface ImportDatabaseDialogProps extends BaseDialogProps {
databaseType: DatabaseType;
}