{locale.COMMON.TAGS}:
diff --git a/themes/next/components/CategoryList.js b/themes/next/components/CategoryList.js
index 2d384479..ffe038ef 100644
--- a/themes/next/components/CategoryList.js
+++ b/themes/next/components/CategoryList.js
@@ -2,16 +2,16 @@ import Link from 'next/link'
import React from 'react'
import { useGlobal } from '@/lib/global'
-const CategoryList = ({ currentCategory, categories }) => {
- if (!categories) {
+const CategoryList = ({ currentCategory, categoryOptions }) => {
+ const { locale } = useGlobal()
+ if (!categoryOptions) {
return <>>
}
- const { locale } = useGlobal()
return (
- {locale.COMMON.CATEGORY}
- {categories.map(category => {
+ {categoryOptions.map(category => {
const selected = category.name === currentCategory
return (
{
- );
+ )
})}
- );
+ )
}
export default CategoryList
diff --git a/themes/next/components/TagList.js b/themes/next/components/TagList.js
index f5b7d030..973e7b68 100644
--- a/themes/next/components/TagList.js
+++ b/themes/next/components/TagList.js
@@ -7,13 +7,13 @@ import TagItem from './TagItem'
* @returns {JSX.Element}
* @constructor
*/
-const TagList = ({ tags, currentTag }) => {
- if (!tags) {
+const TagList = ({ tagOptions, currentTag }) => {
+ if (!tagOptions) {
return <>>
}
return
- 标签:
- {tags.map(tag => {
+ {tagOptions.map(tag => {
const selected = tag.name === currentTag
return
})}