主要菜单加入图标
This commit is contained in:
tangly1024
2021-12-02 10:54:00 +08:00
parent f7dbd26b70
commit 2a105d71f3
8 changed files with 29 additions and 17 deletions

View File

@@ -6,7 +6,7 @@ const CategoryList = ({ currentCategory, categories }) => {
return <></>
}
return <ul className='flex py-1 space-x-3'>
<li className='w-10 py-2 dark:text-gray-200'>分类:</li>
<li className='w-16 py-2 dark:text-gray-200'><i className='fa fa-th-list mr-2'/>分类:</li>
{Object.keys(categories).map(category => {
const selected = category === currentCategory
return (