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: toc tooltip (#3812)

Hongtao Lyefb47a04f55f8
diff --git a/plugins/outline/src/app.tsx b/plugins/outline/src/app.tsx
index 0f31db1ada..2e3deca44e 100644
--- a/plugins/outline/src/app.tsx
+++ b/plugins/outline/src/app.tsx
@@ -50,8 +50,9 @@ export const HeaderItem = ({
const [open, setOpen] = useState(false);
const pushLayout = useSetAtom(pushLayoutAtom);
const deleteLayout = useSetAtom(deleteLayoutAtom);
+
return (
- <Tooltip content="Plugin Enabled">
+ <Tooltip content={`${open ? 'Collapse' : 'Expand'} table of contents`}>
<IconButton
onClick={useCallback(() => {
if (!open) {