show challenge button on mobile

This commit is contained in:
mantikoros 2022-09-05 18:19:06 -05:00
parent f21711f3dc
commit 450b140f5f

View File

@ -42,7 +42,6 @@ export function ExtraContractActionsRow(props: { contract: Contract }) {
/> />
<span>Share</span> <span>Share</span>
</Col> </Col>
<ShareModal <ShareModal
isOpen={isShareOpen} isOpen={isShareOpen}
setOpen={setShareOpen} setOpen={setShareOpen}
@ -50,17 +49,23 @@ export function ExtraContractActionsRow(props: { contract: Contract }) {
user={user} user={user}
/> />
</Button> </Button>
{showChallenge && ( {showChallenge && (
<Button <Button
size="lg" size="lg"
color="gray-white" color="gray-white"
className={'flex hidden max-w-xs self-center sm:inline-block'} className="max-w-xs self-center"
onClick={withTracking( onClick={withTracking(
() => setOpenCreateChallengeModal(true), () => setOpenCreateChallengeModal(true),
'click challenge button' 'click challenge button'
)} )}
> >
<span> Challenge</span> <Col className="items-center sm:flex-row">
<span className="h-[24px] w-5 sm:mr-2" aria-hidden="true">
</span>
<span>Challenge</span>
</Col>
<CreateChallengeModal <CreateChallengeModal
isOpen={openCreateChallengeModal} isOpen={openCreateChallengeModal}
setOpen={setOpenCreateChallengeModal} setOpen={setOpenCreateChallengeModal}