diff --git a/web/src/components/ArchivedMemo.tsx b/web/src/components/ArchivedMemo.tsx index 11ccb6c5..01d8666e 100644 --- a/web/src/components/ArchivedMemo.tsx +++ b/web/src/components/ArchivedMemo.tsx @@ -72,7 +72,7 @@ const ArchivedMemo: React.FC = (props: Props) => { - + ); diff --git a/web/src/components/DailyMemo.tsx b/web/src/components/DailyMemo.tsx index 9799b45d..84085a48 100644 --- a/web/src/components/DailyMemo.tsx +++ b/web/src/components/DailyMemo.tsx @@ -28,7 +28,7 @@ const DailyMemo: React.FC = (props: Props) => {
{memo.timeStr}
- +
); diff --git a/web/src/components/Memo.tsx b/web/src/components/Memo.tsx index a6a13da0..318b6209 100644 --- a/web/src/components/Memo.tsx +++ b/web/src/components/Memo.tsx @@ -35,7 +35,6 @@ const Memo: React.FC = (props: Props) => { const { t, i18n } = useTranslation(); const [createdAtStr, setCreatedAtStr] = useState(getFormatedMemoCreatedAtStr(memo.createdTs, i18n.language)); const memoContainerRef = useRef(null); - const memoContentContainerRef = useRef(null); const isVisitorMode = userService.isVisitorMode(); useEffect(() => { @@ -122,7 +121,7 @@ const Memo: React.FC = (props: Props) => { } const status = targetEl.dataset?.value; - const todoElementList = [...(memoContentContainerRef.current?.querySelectorAll(`span.todo-block[data-value=${status}]`) ?? [])]; + const todoElementList = [...(memoContainerRef.current?.querySelectorAll(`span.todo-block[data-value=${status}]`) ?? [])]; for (const element of todoElementList) { if (element === targetEl) { const index = indexOf(todoElementList, element); @@ -207,7 +206,6 @@ const Memo: React.FC = (props: Props) => { = (props: Props) => {
- +
diff --git a/web/src/components/MemoContent.tsx b/web/src/components/MemoContent.tsx index 20f28f80..af3065c2 100644 --- a/web/src/components/MemoContent.tsx +++ b/web/src/components/MemoContent.tsx @@ -14,8 +14,8 @@ export interface DisplayConfig { } interface Props { - className: string; content: string; + className?: string; displayConfig?: Partial; onMemoContentClick?: (e: React.MouseEvent) => void; onMemoContentDoubleClick?: (e: React.MouseEvent) => void; @@ -78,7 +78,7 @@ const MemoContent: React.FC = (props: Props) => { }; return ( -
+