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'
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
......
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