From 7f8bb82ac44fd69a0d6a85da977650d2a029d2ab Mon Sep 17 00:00:00 2001 From: Tore Brede <Tore.Brede@uib.no> Date: Sun, 31 Oct 2021 13:04:29 +0100 Subject: [PATCH] GREG-100: Fixing linting errors --- frontend/src/routes/sponsor/frontpage/index.tsx | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/frontend/src/routes/sponsor/frontpage/index.tsx b/frontend/src/routes/sponsor/frontpage/index.tsx index 7b0bfe32..b682da5b 100644 --- a/frontend/src/routes/sponsor/frontpage/index.tsx +++ b/frontend/src/routes/sponsor/frontpage/index.tsx @@ -23,6 +23,7 @@ import SponsorGuestButtons from '../../components/sponsorGuestButtons' interface GuestProps { persons: Guest[] + // eslint-disable-next-line react/no-unused-prop-types cancelCallback?: (roleId: string) => void } @@ -176,6 +177,11 @@ const WaitingForGuestRegistration = ({ ) } +WaitingForGuestRegistration.defaultProps = { + // eslint-disable-next-line @typescript-eslint/no-unused-vars + cancelCallback: (roleId: number) => {}, +} + const ActiveGuests = ({ persons }: GuestProps) => { const [activeExpanded, setActiveExpanded] = useState(false) @@ -243,6 +249,11 @@ const ActiveGuests = ({ persons }: GuestProps) => { ) } +ActiveGuests.defaultProps = { + // eslint-disable-next-line @typescript-eslint/no-unused-vars + cancelCallback: (roleId: number) => {}, +} + const WaitingGuests = ({ persons }: GuestProps) => { const [waitingExpanded, setWaitingExpanded] = useState(false) @@ -305,6 +316,11 @@ const WaitingGuests = ({ persons }: GuestProps) => { ) } +WaitingGuests.defaultProps = { + // eslint-disable-next-line @typescript-eslint/no-unused-vars + cancelCallback: (roleId: number) => {}, +} + interface FrontPageProps { guests: Guest[] cancelRole: (roleId: string) => void -- GitLab