mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-27 19:25:15 +02:00
feat: implement memory document fetching and saving functionality in the editor panel, and remove deprecated memory hook
This commit is contained in:
parent
61234e125f
commit
78a3c71bb5
4 changed files with 140 additions and 203 deletions
|
|
@ -216,13 +216,9 @@ export const DocumentNode = React.memo(function DocumentNode({
|
|||
return (
|
||||
<>
|
||||
{isMemoryDocument ? (
|
||||
<button
|
||||
type="button"
|
||||
<span
|
||||
aria-disabled="true"
|
||||
tabIndex={-1}
|
||||
className="h-3.5 w-3.5 shrink-0 cursor-default"
|
||||
onClick={(e) => e.stopPropagation()}
|
||||
onPointerDown={(e) => e.stopPropagation()}
|
||||
>
|
||||
<Checkbox
|
||||
checked={false}
|
||||
|
|
@ -230,7 +226,7 @@ export const DocumentNode = React.memo(function DocumentNode({
|
|||
aria-disabled
|
||||
className="h-3.5 w-3.5 pointer-events-none"
|
||||
/>
|
||||
</button>
|
||||
</span>
|
||||
) : canMention ? (
|
||||
<Checkbox
|
||||
checked={isMentioned}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue