Skip to content

Commit 486faae

Browse files
committed
Update ArticleList component to toggle article publication status with dynamic button text. Remove unused translation key for "Make Unpublished" in Bengali localization.
1 parent c58bf59 commit 486faae

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/app/dashboard/_components/ArticleList.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,11 @@ const ArticleList = () => {
160160
}}
161161
>
162162
<CardStackIcon />
163-
<span>{_t("Make Unpublished")}</span>
163+
<span>
164+
{article.is_published
165+
? _t("Make Draft")
166+
: _t("Publish article")}
167+
</span>
164168
</button>
165169
</DropdownMenuItem>
166170
</DropdownMenuContent>

src/i18n/bn.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@
5151
"Articles": "আর্টিক্যাল সমূহ",
5252
"Draft": "খসড়া",
5353
"Edit": "সম্পাদনা",
54-
"Make Unpublished": "অপ্রকাশিত করুন",
5554
"Sure to unpublish": "অপ্রকাশিত করতে চাচ্ছেন?",
5655
"If you unpublish the article, this will be excluded in home page and search results, however direct links to the article will still work": "আপনি যদি আর্টিকেলটি আনপাব্লিশ করেন তবে এটি হোম পেজে এবং সার্চ ফলাফলে দেখাবে না, তবে আর্টিকেলটির সরাসরি লিঙ্ক সব সময় কাজ করবে",
5756
"Published on": "প্রকাশিত হয়েছে",

0 commit comments

Comments
 (0)