convert const function to function

This commit is contained in:
Ren Amamiya
2023-05-10 15:48:24 +07:00
parent ae5ff0c48f
commit 1a30c10806
32 changed files with 87 additions and 79 deletions

View File

@@ -9,7 +9,7 @@ import { isTagsIncludeID } from '@lume/utils/transform';
import { useMemo } from 'react';
export const NoteBase = ({ event }: { event: any }) => {
export function NoteBase({ event }: { event: any }) {
const content = useMemo(() => noteParser(event), [event]);
const checkParentID = isTagsIncludeID(event.parent_id, event.tags);
@@ -34,4 +34,4 @@ export const NoteBase = ({ event }: { event: any }) => {
</div>
</NoteWrapper>
);
};
}