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.

fix: console error (#180)

Whitewater94dbd89d8f86
diff --git a/apps/ligo-virgo/src/pages/workspace/docs/components/tabs/Tabs.tsx b/apps/ligo-virgo/src/pages/workspace/docs/components/tabs/Tabs.tsx
index 2d56e7edce..7f442caca0 100644
--- a/apps/ligo-virgo/src/pages/workspace/docs/components/tabs/Tabs.tsx
+++ b/apps/ligo-virgo/src/pages/workspace/docs/components/tabs/Tabs.tsx
@@ -13,9 +13,10 @@ const StyledTabs = styled('div')(({ theme }) => {
};
});
-const StyledTabTitle = styled('div', {
- shouldForwardProp: (prop: string) => !['isActive'].includes(prop),
-})<{ isActive?: boolean; isDisabled?: boolean }>`
+const StyledTabTitle = styled('div')<{
+ isActive?: boolean;
+ isDisabled?: boolean;
+}>`
flex: 1;
display: flex;
align-items: center;
diff --git a/libs/components/layout/src/workspace-sidebar/page-tree/tree-item/styles.ts b/libs/components/layout/src/workspace-sidebar/page-tree/tree-item/styles.ts
index a615a497eb..e05415ce81 100644
--- a/libs/components/layout/src/workspace-sidebar/page-tree/tree-item/styles.ts
+++ b/libs/components/layout/src/workspace-sidebar/page-tree/tree-item/styles.ts
@@ -168,7 +168,9 @@ export const TreeItemMoreActions = styled('div')`
visibility: hidden;
`;
-export const TextLink = styled(Link)<{ active?: boolean }>`
+export const TextLink = styled(Link, {
+ shouldForwardProp: (prop: string) => !['active'].includes(prop),
+})<{ active?: boolean }>`
display: flex;
align-items: center;
flex-grow: 1;