mirror of
https://github.com/wgh136/nysoure.git
synced 2025-12-16 07:51:14 +00:00
feat: add release date display to resource details page
This commit is contained in:
@@ -263,6 +263,7 @@ export const i18nData = {
|
||||
"Optional": "可选",
|
||||
"Download": "下载",
|
||||
"Notifications": "通知",
|
||||
"Release Date": "发售日期",
|
||||
},
|
||||
},
|
||||
"zh-TW": {
|
||||
@@ -529,6 +530,7 @@ export const i18nData = {
|
||||
"Optional": "可選",
|
||||
"Download": "下載",
|
||||
"Notifications": "通知",
|
||||
"Release Date": "發售日期",
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
@@ -209,6 +209,14 @@ export default function ResourcePage() {
|
||||
</h2>
|
||||
);
|
||||
})}
|
||||
{
|
||||
resource.releaseDate ? (
|
||||
<div className={"px-4 py-1 text-sm text-gray-600 dark:text-gray-400 flex items-center"}>
|
||||
<MdOutlineAccessTime size={18} className={"inline-block mr-1"} />
|
||||
{t("Release Date")}: {resource.releaseDate.split("T")[0]}
|
||||
</div>
|
||||
) : null
|
||||
}
|
||||
<button
|
||||
onClick={() => {
|
||||
navigate(
|
||||
|
||||
Reference in New Issue
Block a user