add qr code to share dialog

This commit is contained in:
mantikoros 2022-09-22 14:01:37 -04:00
parent a5e293c010
commit 06db5515f6

View File

@ -21,6 +21,7 @@ import { CreateChallengeModal } from 'web/components/challenges/create-challenge
import { useState } from 'react'
import { CHALLENGES_ENABLED } from 'common/challenge'
import ChallengeIcon from 'web/lib/icons/challenge-icon'
import { QRCode } from '../qr-code'
export function ShareModal(props: {
contract: Contract
@ -54,6 +55,7 @@ export function ShareModal(props: {
</SiteLink>{' '}
if a new user signs up using the link!
</p>
<QRCode url={shareUrl} className="self-center" width={150} height={150} />
<Button
size="2xl"
color="indigo"
@ -69,6 +71,7 @@ export function ShareModal(props: {
{linkIcon} Copy link
</Button>
<Row className="z-0 flex-wrap justify-center gap-4 self-center">
<TweetButton
className="self-start"