fix: toc tooltip (#3812)

This commit is contained in:
Hongtao Lye 2023-08-18 01:10:37 +08:00 committed by GitHub
parent da3dd1e324
commit fb47a04f55
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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) {