Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

feat: add workspace-setting active

DiamondThreea80e15042a60
diff --git a/packages/app/src/components/workspace-slider-bar/index.tsx b/packages/app/src/components/workspace-slider-bar/index.tsx
index aae95f7a97..5b0f304431 100644
--- a/packages/app/src/components/workspace-slider-bar/index.tsx
+++ b/packages/app/src/components/workspace-slider-bar/index.tsx
@@ -153,16 +153,11 @@ export const WorkSpaceSliderBar = () => {
</IconButton>
</StyledListItem>
<FavoriteList showList={showSubFavorite} />
- <StyledListItem
- onClick={() => {
- // setShowWorkspaceSetting(true);
- }}
- >
+ <StyledListItem active={router.asPath === paths.setting}>
<StyledLink href={{ pathname: paths.setting }}>
- <FavouritesIcon />
+ <SettingsIcon />
{t('Setting')}
</StyledLink>
- <SettingsIcon />
</StyledListItem>
{/* <WorkspaceSetting