Open source CapCut alternative.
TypeScript
fix(site): the library card's menu says Delete
David Le40d7bf1adebf
diff --git a/site/src/cut/components/LibraryView.tsx b/site/src/cut/components/LibraryView.tsxindex da9edab7..c09f5411 100644--- a/site/src/cut/components/LibraryView.tsx+++ b/site/src/cut/components/LibraryView.tsx@@ -985,7 +985,7 @@ export function LibraryView() {<AlertDialogContent><AlertDialogHeader><AlertDialogTitle>- Remove “{deleting?.name}” from the library?+ Delete “{deleting?.name}”?</AlertDialogTitle><AlertDialogDescription>Projects that already use it keep their own copy.@@ -1357,7 +1357,7 @@ export function LibraryCard({<><DropdownMenuSeparator /><DropdownMenuItem variant="destructive" onClick={onDelete}>- <Trash2 /> Remove from library+ <Trash2 /> Delete</DropdownMenuItem></>)}diff --git a/site/src/cut/components/SidePanel.tsx b/site/src/cut/components/SidePanel.tsxindex 284d1c13..17aed7f7 100644--- a/site/src/cut/components/SidePanel.tsx+++ b/site/src/cut/components/SidePanel.tsx@@ -1509,7 +1509,7 @@ function LibraryPanel({ projectId }: { projectId: string }) {<AlertDialog open={!!deleting} onOpenChange={(o) => !o && setDeleting(null)}><AlertDialogContent><AlertDialogHeader>- <AlertDialogTitle>Remove “{deleting?.name}” from the library?</AlertDialogTitle>+ <AlertDialogTitle>Delete “{deleting?.name}”?</AlertDialogTitle><AlertDialogDescription>Projects that already use it keep their own copy.</AlertDialogDescription>