diff --git a/frontend/src/pages/resource_details_page.tsx b/frontend/src/pages/resource_details_page.tsx index cca778c..ca8c005 100644 --- a/frontend/src/pages/resource_details_page.tsx +++ b/frontend/src/pages/resource_details_page.tsx @@ -26,6 +26,7 @@ import "../markdown.css"; import Loading from "../components/loading.tsx"; import { MdAdd, + MdOutlineAdd, MdOutlineArchive, MdOutlineArticle, MdOutlineComment, @@ -1597,6 +1598,8 @@ function CollectionDialog({ rid }: { rid: number }) { const debounce = new Debounce(500); + const navigate = useNavigate(); + const delayedSetSearchKeyword = (keyword: string) => { setSearchKeyword(keyword); debounce.run(() => { @@ -1633,6 +1636,10 @@ function CollectionDialog({ rid }: { rid: number }) { }); }; + if (!app.isLoggedIn()) { + return <> + } + return ( <> )}
+ +
- +