@@ -22,7 +22,7 @@ const NextRecentComments = dynamic(() => import('./NextRecentComments'))
22
22
* @constructor
23
23
*/
24
24
const SideAreaRight = ( props ) => {
25
- const { tags , currentTag, slot, categories , currentCategory, notice } = props
25
+ const { tagOptions , currentTag, slot, categoryOptions , currentCategory, notice } = props
26
26
const { locale } = useGlobal ( )
27
27
const router = useRouter ( )
28
28
return ( < aside id = 'right' className = { ( BLOG . LAYOUT_SIDEBAR_REVERSE ? 'mr-4' : 'ml-4' ) + ' space-y-4 hidden 2xl:block flex-col w-60 relative z-10' } >
@@ -50,7 +50,7 @@ const SideAreaRight = (props) => {
50
50
{ slot }
51
51
52
52
{ /* 分类 */ }
53
- { CONFIG_NEXT . RIGHT_CATEGORY_LIST && router . asPath !== '/category' && categories && (
53
+ { CONFIG_NEXT . RIGHT_CATEGORY_LIST && router . asPath !== '/category' && categoryOptions && (
54
54
< Card >
55
55
< div className = 'text-sm px-2 flex flex-nowrap justify-between font-light' >
56
56
< div className = 'pb-2 text-gray-600 dark:text-gray-300' > < i className = 'mr-2 fas fa-th-list' /> { locale . COMMON . CATEGORY } </ div >
@@ -63,11 +63,11 @@ const SideAreaRight = (props) => {
63
63
64
64
</ Link >
65
65
</ div >
66
- < CategoryGroup currentCategory = { currentCategory } categories = { categories } />
66
+ < CategoryGroup currentCategory = { currentCategory } categories = { categoryOptions } />
67
67
</ Card >
68
68
) }
69
69
70
- { CONFIG_NEXT . RIGHT_TAG_LIST && router . asPath !== '/tag' && tags && (
70
+ { CONFIG_NEXT . RIGHT_TAG_LIST && router . asPath !== '/tag' && tagOptions && (
71
71
< Card >
72
72
< div className = "text-sm pb-1 px-2 flex flex-nowrap justify-between font-light dark:text-gray-200" >
73
73
< div className = "text-gray-600 dark:text-gray-200" >
@@ -85,7 +85,7 @@ const SideAreaRight = (props) => {
85
85
</ Link >
86
86
</ div >
87
87
< div className = "px-2 pt-2" >
88
- < TagGroups tags = { tags } currentTag = { currentTag } />
88
+ < TagGroups tags = { tagOptions } currentTag = { currentTag } />
89
89
</ div >
90
90
</ Card >
91
91
) }
0 commit comments