diff --git a/src/components/Datetime.tsx b/src/components/Datetime.tsx index 15238cb64..a9f7cb11e 100644 --- a/src/components/Datetime.tsx +++ b/src/components/Datetime.tsx @@ -35,8 +35,8 @@ export default function Datetime({ } inline-block h-6 w-6 min-w-[1.375rem] fill-skin-base`} aria-hidden="true" > - - + + {modDatetime && modDatetime > pubDatetime ? ( diff --git a/src/components/Search.tsx b/src/components/Search.tsx index 4ec41bc98..6bda20068 100644 --- a/src/components/Search.tsx +++ b/src/components/Search.tsx @@ -49,7 +49,7 @@ export default function SearchBar({ searchList }: Props) { if (searchStr) setInputVal(searchStr); // put focus cursor at the end of the string - setTimeout(function () { + setTimeout(() => { inputRef.current!.selectionStart = inputRef.current!.selectionEnd = searchStr?.length || 0; }, 50); @@ -85,7 +85,7 @@ export default function SearchBar({ searchList }: Props) {