Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

fix: wrong workspace name when deleting workspace (#1177)

JimmFly6908298fccf6
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 = ({
<StyledTextContent>
<Trans i18nKey="Delete Workspace Description">
Deleting (
- <StyledWorkspaceName>{workspace.name}</StyledWorkspaceName>)
- cannot be undone, please proceed with caution. along with all its
- content.
+ <StyledWorkspaceName>
+ {{ workspace: workspace.name } as any}
+ </StyledWorkspaceName>
+ ) cannot be undone, please proceed with caution. All contents will
+ be lost.
</Trans>
</StyledTextContent>
) : (
<StyledTextContent>
<Trans i18nKey="Delete Workspace Description2">
Deleting (
- <StyledWorkspaceName>{workspace.name}</StyledWorkspaceName>) will
- delete both local and cloud data, this operation cannot be undone,
- please proceed with caution.
+ <StyledWorkspaceName>
+ {{ workspace: workspace.name } as any}
+ </StyledWorkspaceName>
+ ) will delete both local and cloud data, this operation cannot be
+ undone, please proceed with caution.
</Trans>
</StyledTextContent>
)}