diff --git a/frontend/src/components/NoticeBoard.tsx b/frontend/src/components/NoticeBoard.tsx index 8ddc36b..8ac8812 100644 --- a/frontend/src/components/NoticeBoard.tsx +++ b/frontend/src/components/NoticeBoard.tsx @@ -69,7 +69,7 @@ export function NoticeBoard({ user }: { user: User }) { {showForm && user.is_admin && ( - { setShowForm(false); forceRefresh() }} /> + { setShowForm(false); forceRefresh() }} /> )}
@@ -141,7 +141,7 @@ export function NoticeBoard({ user }: { user: User }) { ) } -function PostForm({ user, onPosted }: { user: User; onPosted: () => void }) { +function PostForm({ onPosted }: { onPosted: () => void }) { const [title, setTitle] = useState('') const [body, setBody] = useState('') const [category, setCategory] = useState('general')