Skip to content
Snippets Groups Projects
Commit 7f8bb82a authored by Tore.Brede's avatar Tore.Brede
Browse files

GREG-100: Fixing linting errors

parent 12d9233b
No related branches found
No related tags found
1 merge request!129GREG-100: Cancel invitation
Pipeline #98750 passed
...@@ -23,6 +23,7 @@ import SponsorGuestButtons from '../../components/sponsorGuestButtons' ...@@ -23,6 +23,7 @@ import SponsorGuestButtons from '../../components/sponsorGuestButtons'
interface GuestProps { interface GuestProps {
persons: Guest[] persons: Guest[]
// eslint-disable-next-line react/no-unused-prop-types
cancelCallback?: (roleId: string) => void cancelCallback?: (roleId: string) => void
} }
...@@ -176,6 +177,11 @@ const WaitingForGuestRegistration = ({ ...@@ -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 ActiveGuests = ({ persons }: GuestProps) => {
const [activeExpanded, setActiveExpanded] = useState(false) const [activeExpanded, setActiveExpanded] = useState(false)
...@@ -243,6 +249,11 @@ const ActiveGuests = ({ persons }: GuestProps) => { ...@@ -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 WaitingGuests = ({ persons }: GuestProps) => {
const [waitingExpanded, setWaitingExpanded] = useState(false) const [waitingExpanded, setWaitingExpanded] = useState(false)
...@@ -305,6 +316,11 @@ const WaitingGuests = ({ persons }: GuestProps) => { ...@@ -305,6 +316,11 @@ const WaitingGuests = ({ persons }: GuestProps) => {
) )
} }
WaitingGuests.defaultProps = {
// eslint-disable-next-line @typescript-eslint/no-unused-vars
cancelCallback: (roleId: number) => {},
}
interface FrontPageProps { interface FrontPageProps {
guests: Guest[] guests: Guest[]
cancelRole: (roleId: string) => void cancelRole: (roleId: string) => void
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment