Skip to content

Commit

Permalink
remove note title from frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
rm03 committed Oct 12, 2024
1 parent 65f86cb commit f659927
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions frontend/components/ClubEditPage/AdminNoteCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ export default function AdminNoteCard({
}: AdminNoteCardProps): ReactElement {
const noteTableFields = [
{ label: 'Author', name: 'creator' },
{ label: 'Title', name: 'title' },
{ label: 'Content', name: 'content' },
{ label: 'Note', name: 'content' },
{
label: 'Created On',
name: 'created_at',
Expand All @@ -35,12 +34,11 @@ export default function AdminNoteCard({
baseUrl={`/clubs/${club.code}/adminnotes/`}
fields={
<>
<Field name="title" as={TextField} required />
<Field name="content" as={TextField} type="textarea" />
<Field name="content" as={TextField} type="textarea" required />
</>
}
tableFields={noteTableFields}
searchableColumns={['title', 'content']}
searchableColumns={['content']}
noun="Note"
/>
</BaseCard>
Expand Down

0 comments on commit f659927

Please sign in to comment.