Fix TS6133: remove unused user prop from PostForm

This commit is contained in:
jtricerolph 2026-07-01 14:23:25 +00:00
parent 11de77ea76
commit c40f720ae7

View file

@ -69,7 +69,7 @@ export function NoticeBoard({ user }: { user: User }) {
</header>
{showForm && user.is_admin && (
<PostForm user={user} onPosted={() => { setShowForm(false); forceRefresh() }} />
<PostForm onPosted={() => { setShowForm(false); forceRefresh() }} />
)}
<div style={{ display: 'flex', gap: '0.5rem', marginBottom: '1rem', flexWrap: 'wrap' }}>
@ -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')