From f01504de406d6604b3ca57720951f734e6ca4cfa Mon Sep 17 00:00:00 2001 From: Anthony Ho Date: Tue, 9 Apr 2024 12:45:33 +0900 Subject: [PATCH] rename from document to widget --- src/components/DocumentEditor/EditorElements/TitleElement.tsx | 2 +- src/components/Layouts/AccountLayout.tsx | 4 ++-- src/server/api/trpc.ts | 4 +++- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/components/DocumentEditor/EditorElements/TitleElement.tsx b/src/components/DocumentEditor/EditorElements/TitleElement.tsx index 9e697bf5..68c9e9bb 100644 --- a/src/components/DocumentEditor/EditorElements/TitleElement.tsx +++ b/src/components/DocumentEditor/EditorElements/TitleElement.tsx @@ -57,7 +57,7 @@ export function TitleElement(props) { data-id={element.id} data-path={JSON.stringify(path)} data-element={element.type} - data-placeholder={shouldShowPlaceholder ? "Untitled Workspace" : ""} + data-placeholder={shouldShowPlaceholder ? "Untitled Widget" : ""} > {children} diff --git a/src/components/Layouts/AccountLayout.tsx b/src/components/Layouts/AccountLayout.tsx index 195751b6..24acf7d5 100644 --- a/src/components/Layouts/AccountLayout.tsx +++ b/src/components/Layouts/AccountLayout.tsx @@ -703,7 +703,7 @@ const Layout: React.FC = ({ width={22} />{" "} - New Document + New Widget @@ -983,7 +983,7 @@ const WorkspacePopover: React.FC = ({ setPopoverVisible(false); }} > - New Document + New Widget