From 10b71cf644d054615e3be6af91bebd03280988ce Mon Sep 17 00:00:00 2001 From: DIYgod Date: Mon, 6 Mar 2023 00:57:08 +0000 Subject: [PATCH] feat: change unpublish to delete --- public/locales/ja/dashboard.json | 1 - public/locales/zh/dashboard.json | 1 - src/components/dashboard/PublishButton.tsx | 2 +- 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/public/locales/ja/dashboard.json b/public/locales/ja/dashboard.json index 25fc4596..f46406c3 100644 --- a/public/locales/ja/dashboard.json +++ b/public/locales/ja/dashboard.json @@ -58,7 +58,6 @@ "Preview": "プレビュー", "Publish": "公開", "Update": "更新", - "Unpublish": "非公開", "Publish at": "公開日時", "This post will be accessible from this time": "この記事は、この時間からアクセス可能になります", "This page will be accessible from this time": "このページは、この時間からアクセス可能になります", diff --git a/public/locales/zh/dashboard.json b/public/locales/zh/dashboard.json index 62891b13..dcd290b1 100644 --- a/public/locales/zh/dashboard.json +++ b/public/locales/zh/dashboard.json @@ -61,7 +61,6 @@ "Preview": "预览", "Publish": "发布", "Update": "更新", - "Unpublish": "取消发布", "Publish at": "发布时间", "This post will be accessible from this time": "此文章将从此时间开始可访问", "This page will be accessible from this time": "此页面将从此时间开始可访问", diff --git a/src/components/dashboard/PublishButton.tsx b/src/components/dashboard/PublishButton.tsx index e6f71604..e5f2bbd2 100644 --- a/src/components/dashboard/PublishButton.tsx +++ b/src/components/dashboard/PublishButton.tsx @@ -62,7 +62,7 @@ export const PublishButton: React.FC<{ className="flex w-full h-8 hover:bg-zinc-100 items-center px-5" onClick={() => save(false)} > - {t("Unpublish")} + {t("Delete")} )}