mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-12-24 22:21:52 +03:00
fix: toc tooltip (#3812)
This commit is contained in:
parent
da3dd1e324
commit
fb47a04f55
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user