Skip to content

Commit b6615e3

Browse files
committed
fix: del public status
1 parent 95ddc88 commit b6615e3

File tree

6 files changed

+7
-18
lines changed

6 files changed

+7
-18
lines changed

locales/en/common.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,7 @@
9494
"readArticle": "Read Article",
9595
"viewMore": "View More Articles",
9696
"readingTime": "minute read",
97-
"unknownAuthor": "Unknown Author",
98-
"unpublished": "Unpublished"
97+
"unknownAuthor": "Unknown Author"
9998
},
10099
"mission": {
101100
"title": "Our Mission",

locales/zh-CN/common.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,8 @@
9494
"readArticle": "阅读文章",
9595
"viewMore": "查看更多文章",
9696
"readingTime": "分钟阅读",
97-
"unknownAuthor": "未知作者",
98-
"unpublished": "未发布"
97+
"unknownAuthor": "未知作者"
98+
9999
},
100100
"mission": {
101101
"title": "我们的使命",

locales/zh-TW/common.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,8 @@
9393
"readArticle": "閱讀文章",
9494
"viewMore": "查看更多文章",
9595
"readingTime": "分鐘閱讀",
96-
"unknownAuthor": "未知作者",
97-
"unpublished": "未發布"
96+
"unknownAuthor": "未知作者"
97+
9898
},
9999
"mission": {
100100
"title": "我們的使命",

src/components/home/article/Article.tsx

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -144,12 +144,7 @@ export default function ArticleSection() {
144144
<User className={styles.articleIcon} />
145145
{article.author || t('homepage.articles.unknownAuthor')}
146146
</div>
147-
<div className={styles.articleInfoItem}>
148-
<Calendar className={styles.articleIcon} />
149-
{article.publish_time
150-
? formatTime(article.publish_time)
151-
: t('homepage.articles.unpublished')}
152-
</div>
147+
153148
<div className={styles.articleInfoItem}>
154149
<BookOpen className={styles.articleIcon} />
155150
{article.readingTime || 6} {t('homepage.articles.readingTime')}

src/pages/events/coscon/index.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -214,9 +214,7 @@ export default function CosconEventsPage() {
214214
>
215215
{getStatusText(event)}
216216
</Tag>
217-
{event.publish_status === 1 && (
218-
<Tag className={styles.noPublishStatus}>未发布</Tag>
219-
)}
217+
220218
<div className={styles.cardActions}>
221219
{status === 'authenticated' &&
222220
permissions.includes('event:write') ? (

src/pages/events/index.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -433,9 +433,6 @@ export default function EventsPage() {
433433
>
434434
{getStatusText(event)}
435435
</Tag>
436-
{event.publish_status === 1 && (
437-
<Tag className={styles.noPublishStatus}>未发布</Tag>
438-
)}
439436
<div className={styles.cardActions}>
440437
{status === 'authenticated' &&
441438
permissions.includes('event:write') ? (

0 commit comments

Comments
 (0)