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.
TypeScript appcrdteditorelectronknowledge-basemarkdownmironotesnotionnotion-alternativerustrust-langrust-languagetabletableviewwhiteboardwikiworkspace
chore: add kanban card ref page flag
lawvs612ee4926dd0
diff --git a/libs/components/editor-blocks/src/blocks/group/scene-kanban/CardItem.tsx b/libs/components/editor-blocks/src/blocks/group/scene-kanban/CardItem.tsxindex efdc96ef70..0b1730ba0d 100644--- a/libs/components/editor-blocks/src/blocks/group/scene-kanban/CardItem.tsx+++ b/libs/components/editor-blocks/src/blocks/group/scene-kanban/CardItem.tsx@@ -5,6 +5,7 @@ import {useRefPage,} from '@toeverything/components/editor-core';import { styled } from '@toeverything/components/ui';+import { useFlag } from '@toeverything/datasource/feature-flags';const CardContent = styled('div')({margin: '20px',@@ -63,12 +64,13 @@ export const CardItem = ({}) => {const { addSubItem } = useKanban();const { openSubPage } = useRefPage();+ const showKanbanRefPageFlag = useFlag('ShowKanbanRefPage', false);const onAddItem = async () => {await addSubItem(block);};const onClickCard = async () => {- openSubPage(id);+ showKanbanRefPageFlag && openSubPage(id);};return (