diff --git a/src/components/MintDialog/MintDialog.tsx b/src/components/MintDialog/MintDialog.tsx index aaaf9243..9e8e9f3e 100644 --- a/src/components/MintDialog/MintDialog.tsx +++ b/src/components/MintDialog/MintDialog.tsx @@ -240,16 +240,16 @@ export const MintDialog: FC<{ size?: ButtonProps['size'] }> = ({ size }) => { diff --git a/src/components/MintDialog/elements/Layout.tsx b/src/components/MintDialog/elements/Layout.tsx index a9944900..04360bc6 100644 --- a/src/components/MintDialog/elements/Layout.tsx +++ b/src/components/MintDialog/elements/Layout.tsx @@ -15,7 +15,7 @@ export const Layout: FC = ({ children }) => { {dropName}
diff --git a/src/components/MintDialog/elements/PartnerInfo.tsx b/src/components/MintDialog/elements/PartnerInfo.tsx index 64c0ae57..7d3c0567 100644 --- a/src/components/MintDialog/elements/PartnerInfo.tsx +++ b/src/components/MintDialog/elements/PartnerInfo.tsx @@ -12,7 +12,12 @@ export const PartnerInfo: FC = () => { return (
- {`${partnerName} + {`${partnerName}
{partnerName}
diff --git a/src/components/Share/Share.tsx b/src/components/Share/Share.tsx index ef9daf34..18307780 100644 --- a/src/components/Share/Share.tsx +++ b/src/components/Share/Share.tsx @@ -1,52 +1,72 @@ -import { FC } from 'react'; -import Link from 'next/link'; +import { FC } from 'react' +import Link from 'next/link' -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 { 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' -const twitterURL: string = "https://twitter.com/intent/tweet"; -const warpCastURL: string = "https://warpcast.com"; -const lensURL: string = "https://lenster.xyz"; +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 = () => { - const { dropName } = useMintDialogContext(); - const { location:{ href } } = window; - 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.` - } +export const Share: FC = () => { + const { dropName } = useMintDialogContext() + const { + location: { href }, + } = window + 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.`, + } - const tweetUrl = `${twitterURL}?url=${href}&text=${shareText['twitter']}`; - const warpCastShareUrl = `${warpCastURL}/~/compose?text=${shareText['warpCast']}&embeds[]=${href}`; - const lensShareUrl = `${lensURL}?text=${shareText['lens']}&url=${href}`; + const tweetUrl = `${twitterURL}?url=${href}&text=${shareText['twitter']}` + const warpCastShareUrl = `${warpCastURL}/~/compose?text=${shareText['warpCast']}&embeds[]=${href}` + const lensShareUrl = `${lensURL}?text=${shareText['lens']}&url=${href}` - return ( -
-
- - -

Twitter

- -
+ return ( +
+
+ + +

+ X +

+ +
-
- - -

Warpcast

- -
+
+ + +

+ Warpcast +

+ +
-
- - -

Lens

- -
-
- ) -} \ No newline at end of file +
+ + +

+ Lens +

+ +
+
+ ) +}