mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-12-26 00:08:02 +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 [open, setOpen] = useState(false);
|
||||||
const pushLayout = useSetAtom(pushLayoutAtom);
|
const pushLayout = useSetAtom(pushLayoutAtom);
|
||||||
const deleteLayout = useSetAtom(deleteLayoutAtom);
|
const deleteLayout = useSetAtom(deleteLayoutAtom);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Tooltip content="Plugin Enabled">
|
<Tooltip content={`${open ? 'Collapse' : 'Expand'} table of contents`}>
|
||||||
<IconButton
|
<IconButton
|
||||||
onClick={useCallback(() => {
|
onClick={useCallback(() => {
|
||||||
if (!open) {
|
if (!open) {
|
||||||
|
Loading…
Reference in New Issue
Block a user