diff --git a/frontend/src/routes/sponsor/frontpage/index.tsx b/frontend/src/routes/sponsor/frontpage/index.tsx index 7b0bfe3231d20605d9806470f041b5537b0ce217..b682da5bbe4a8c1745fc2dac6e1ca809160d207a 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