Skip to content

Commit

Permalink
website: update sider menus.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Dec 7, 2022
1 parent 392c219 commit a78b606
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions www/src/pages/theme/themes/SiderMenus.tsx
Expand Up @@ -32,11 +32,9 @@ export function SiderMenus() {
.filter(Boolean)
.map((item) => item?.slice(0, 1).toUpperCase() + item?.slice(1).toLowerCase())
.join(' ');
const href = `/theme/data/${_name}${_theme ? `/${_theme}` : ''}${other ? `/${other.join('/')}` : ''}`;
return (
<MenuItem
key={key}
to={`/theme/data/${_name}${_theme ? `/${_theme}` : ''}${other ? `/${other.join('/')}` : ''}`}
>
<MenuItem key={key} to={href.replace(/\/$/gi, '')}>
{title}
</MenuItem>
);
Expand Down

0 comments on commit a78b606

Please sign in to comment.