diff --git a/frontend/src/lib/common/presenter/ui/Navbar.tsx b/frontend/src/lib/common/presenter/ui/Navbar.tsx index 1270cac..def71a6 100644 --- a/frontend/src/lib/common/presenter/ui/Navbar.tsx +++ b/frontend/src/lib/common/presenter/ui/Navbar.tsx @@ -1,10 +1,12 @@ +import Link from "next/link"; + export default function Navbar() { return (
- + 魚之魷魂 - +
@@ -18,12 +20,12 @@ function Action(props: { label: string; link: string; isSelected: boolean }) {
- {props.label} - +
); } diff --git a/frontend/src/lib/home/framework/ui/SelfTags.tsx b/frontend/src/lib/home/framework/ui/SelfTags.tsx index 00d2f3a..27aad53 100644 --- a/frontend/src/lib/home/framework/ui/SelfTags.tsx +++ b/frontend/src/lib/home/framework/ui/SelfTags.tsx @@ -9,12 +9,12 @@ import { tagStartedAction, tagStoppedAction } from "../../presenter/tagSlice"; export default function SelfTags() { return ( - <_SelfTags /> + ); } -function _SelfTags() { +function SelfTagsProvided() { const tags = useTagSelector((state) => state.tag.tags); const dispatch = useTagDispatch(); @@ -26,7 +26,7 @@ function _SelfTags() { dispatch(tagStoppedAction()); setIsTagsVisible(false); }; - }, []); + }, [dispatch]); useEffect(() => { if (tags.length === 0) return;