refactor: challenge modal

This commit is contained in:
Aman Harwara
2023-01-26 22:22:27 +05:30
parent 8f3778bff2
commit 8d9aef445e

View File

@@ -233,7 +233,17 @@ const ChallengeModal: FunctionComponent<Props> = ({
),
}}
customHeader={<></>}
customFooter={<></>}
disableCustomHeader={isMobileScreen}
actions={[
{
label: 'Cancel',
onClick: cancelChallenge,
type: 'primary',
hidden: !challenge.cancelable,
mobileSlot: 'right',
},
]}
>
{challenge.cancelable && (
<button