Fix TS6133: remove unused user prop from PostForm
This commit is contained in:
parent
11de77ea76
commit
c40f720ae7
1 changed files with 2 additions and 2 deletions
|
|
@ -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')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue