Skip to content

Commit

Permalink
chore: brought over arpits changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ximxim committed Aug 10, 2023
1 parent 4acd7c3 commit 6e92821
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions src/components/Share/Share.tsx
Original file line number Diff line number Diff line change
@@ -1,25 +1,28 @@
import { FC } from 'react'
import Link from 'next/link'
import { Address } from 'wagmi'

import { TwitterIcon } from '@/components/icons/Twitter'
import { useMintDialogContext } from '@/components/MintDialog/Context/useMintDialogContext'
import { website } from '@/config/website'
import { WarpCast } from '@/components/icons/Warpcast'
import { Lens } from '@/components/icons/Lens'
import { useEns } from '@/utils/useEns'

const twitterURL: string = 'https://twitter.com/intent/tweet'
const warpCastURL: string = 'https://warpcast.com'
const lensURL: string = 'https://lenster.xyz'

type ShareComponentProps = {}
export const Share: FC<ShareComponentProps> = () => {
const { dropName } = useMintDialogContext()
const {
location: { href },
} = window
const { dropName, partnerName, creatorAddress } = useMintDialogContext()
const { name } = useEns(creatorAddress as Address)

const href = `${website.url}/${partnerName}`
const shareText = {
twitter: `I just minted ${dropName}, celebrating the start of @BuildOnBase bringing billions of people onchain.%0a%0aIt’s Onchain Summer.`,
lens: `I just minted ${dropName}, celebrating the start of @BuildOnBase bringing billions of people onchain.%0a%0aIt’s Onchain Summer.`,
warpCast: `I just minted ${dropName}, celebrating the start of @base bringing billions of people onchain.%0a%0aIt’s Onchain Summer.`,
twitter: `I just minted ${dropName} by ${name}, celebrating Onchain Summer with ${partnerName} on @BuildOnBase.`,
lens: `I just minted ${dropName} by ${name}, celebrating Onchain Summer with ${partnerName} on @base.`,
warpCast: `I just minted ${dropName} by ${name}, celebrating Onchain Summer with ${partnerName} on @base.`,
}

const tweetUrl = `${twitterURL}?url=${href}&text=${shareText['twitter']}`
Expand Down

0 comments on commit 6e92821

Please sign in to comment.