From 6908298fccf6250617189ed2cb40ca8f6b2e9336 Mon Sep 17 00:00:00 2001 From: JimmFly Date: Wed, 22 Feb 2023 14:18:25 +0800 Subject: [PATCH] fix: wrong workspace name when deleting workspace (#1177) --- .../workspace-setting/general/delete/Delete.tsx | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/apps/web/src/components/workspace-setting/general/delete/Delete.tsx b/apps/web/src/components/workspace-setting/general/delete/Delete.tsx index d86a623406..1b204e5d3d 100644 --- a/apps/web/src/components/workspace-setting/general/delete/Delete.tsx +++ b/apps/web/src/components/workspace-setting/general/delete/Delete.tsx @@ -53,18 +53,22 @@ export const WorkspaceDelete = ({ Deleting ( - {workspace.name}) - cannot be undone, please proceed with caution. along with all its - content. + + {{ workspace: workspace.name } as any} + + ) cannot be undone, please proceed with caution. All contents will + be lost. ) : ( Deleting ( - {workspace.name}) will - delete both local and cloud data, this operation cannot be undone, - please proceed with caution. + + {{ workspace: workspace.name } as any} + + ) will delete both local and cloud data, this operation cannot be + undone, please proceed with caution. )}