summaryrefslogtreecommitdiff
path: root/apps/web/src/components/editor/dialogs/migration-dialog.tsx
diff options
context:
space:
mode:
authorMaze Winther <mazewinther@gmail.com>2026-04-20 11:31:17 +0200
committerMaze Winther <mazewinther@gmail.com>2026-04-20 11:31:17 +0200
commit3e89d2998588f8e35c524e523ba2ee853f0f6475 (patch)
tree57221f96c1259b3b07e3ddf8c1adefc502b9d8eb /apps/web/src/components/editor/dialogs/migration-dialog.tsx
parent729d10592f4e802f91c555c309ff3ba4b119f843 (diff)
downloadopencut-3e89d2998588f8e35c524e523ba2ee853f0f6475.tar.gz
refactor: restructure files to their domains, new preview overlay system, and dep graph
Diffstat (limited to 'apps/web/src/components/editor/dialogs/migration-dialog.tsx')
-rw-r--r--apps/web/src/components/editor/dialogs/migration-dialog.tsx44
1 files changed, 0 insertions, 44 deletions
diff --git a/apps/web/src/components/editor/dialogs/migration-dialog.tsx b/apps/web/src/components/editor/dialogs/migration-dialog.tsx
deleted file mode 100644
index 4c9550c2..00000000
--- a/apps/web/src/components/editor/dialogs/migration-dialog.tsx
+++ /dev/null
@@ -1,44 +0,0 @@
-"use client";
-
-import {
- Dialog,
- DialogContent,
- DialogDescription,
- DialogHeader,
- DialogTitle,
-} from "@/components/ui/dialog";
-import { useEditor } from "@/hooks/use-editor";
-import { Loader2 } from "lucide-react";
-
-export function MigrationDialog() {
- const editor = useEditor();
- const migrationState = editor.project.getMigrationState();
-
- if (!migrationState.isMigrating) return null;
-
- const title = migrationState.projectName
- ? "Updating project"
- : "Updating projects";
- const description = migrationState.projectName
- ? `Upgrading "${migrationState.projectName}" from v${migrationState.fromVersion} to v${migrationState.toVersion}`
- : `Upgrading projects from v${migrationState.fromVersion} to v${migrationState.toVersion}`;
-
- return (
- <Dialog open={true}>
- <DialogContent
- className="sm:max-w-md"
- onPointerDownOutside={(event) => event.preventDefault()}
- onEscapeKeyDown={(event) => event.preventDefault()}
- >
- <DialogHeader>
- <DialogTitle>{title}</DialogTitle>
- <DialogDescription>{description}</DialogDescription>
- </DialogHeader>
-
- <div className="flex items-center justify-center py-4">
- <Loader2 className="text-muted-foreground size-8 animate-spin" />
- </div>
- </DialogContent>
- </Dialog>
- );
-}