I'm tired of writing commit message, sorry!

This commit is contained in:
Ren Amamiya
2023-03-22 10:37:07 +07:00
parent 27fe32d748
commit ca87624727
7 changed files with 49 additions and 172 deletions

View File

@@ -1,10 +1,11 @@
import { Content } from '@components/note/content';
import { RootNote } from '@components/note/root';
import destr from 'destr';
import { memo, useMemo } from 'react';
export const Note = memo(function Note({ event }: { event: any }) {
const tags = JSON.parse(event.tags);
const tags = destr(event.tags);
const fetchRootEvent = useMemo(() => {
if (tags.length > 0) {