mirror of
https://github.com/luminous-devs/lume.git
synced 2024-09-19 11:43:30 +00:00
updated note connector
This commit is contained in:
parent
5437ec5c92
commit
365ec3df88
@ -49,9 +49,12 @@ export default function NoteConnector() {
|
|||||||
parent_comment_id: '',
|
parent_comment_id: '',
|
||||||
created_at: event.created_at,
|
created_at: event.created_at,
|
||||||
account_id: activeAccount.id,
|
account_id: activeAccount.id,
|
||||||
}).catch(console.error);
|
})
|
||||||
// notify user reload to get newer note
|
.then(() =>
|
||||||
setHasNewerNote(true);
|
// notify user reload to get newer note
|
||||||
|
setHasNewerNote(true)
|
||||||
|
)
|
||||||
|
.catch(console.error);
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
}, [pool, relays, setHasNewerNote]);
|
}, [pool, relays, setHasNewerNote]);
|
||||||
|
@ -8,7 +8,6 @@ import { Placeholder } from '@components/note/placeholder';
|
|||||||
import { hasNewerNoteAtom } from '@stores/note';
|
import { hasNewerNoteAtom } from '@stores/note';
|
||||||
|
|
||||||
import { dateToUnix } from '@utils/getDate';
|
import { dateToUnix } from '@utils/getDate';
|
||||||
import { filteredData } from '@utils/transform';
|
|
||||||
|
|
||||||
import { ArrowUpIcon } from '@radix-ui/react-icons';
|
import { ArrowUpIcon } from '@radix-ui/react-icons';
|
||||||
import { useAtom } from 'jotai';
|
import { useAtom } from 'jotai';
|
||||||
@ -100,7 +99,7 @@ export default function Page() {
|
|||||||
)}
|
)}
|
||||||
<Virtuoso
|
<Virtuoso
|
||||||
ref={virtuosoRef}
|
ref={virtuosoRef}
|
||||||
data={filteredData(data)}
|
data={data}
|
||||||
itemContent={itemContent}
|
itemContent={itemContent}
|
||||||
computeItemKey={computeItemKey}
|
computeItemKey={computeItemKey}
|
||||||
components={COMPONENTS}
|
components={COMPONENTS}
|
||||||
|
Loading…
Reference in New Issue
Block a user