Skip to content

Commit e54bf4e

Browse files
committed
Adding X messaging
1 parent 13949c9 commit e54bf4e

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

apps/dashboard/src/app/team/[team_slug]/(team)/_components/CopyAnalyticsButton.tsx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
"use client";
22
import { useState } from "react";
33

4-
export default function ShareTwitterButton({ targetId }) {
4+
interface ShareTwitterButtonProps {
5+
targetId: string; // This defines targetId as a required string
6+
}
7+
8+
export default function ShareTwitterButton({
9+
targetId,
10+
}: ShareTwitterButtonProps) {
511
const [isSharing, setIsSharing] = useState(false);
612
const [shareStatus, setShareStatus] = useState(null);
713

@@ -38,7 +44,7 @@ export default function ShareTwitterButton({ targetId }) {
3844
link.click();
3945
// Prepare Twitter share URL with better text prompt
4046
const tweetText = encodeURIComponent(
41-
"Check this out! (Image copied to clipboard) #YourHashtag",
47+
"🚀 Check out our dashboard on @thirdweb —\n 📊 New users growing\n 🔥 Users retained\n ⚡️ Onchain activity is real.",
4248
);
4349
const twitterUrl = `https://twitter.com/intent/tweet?text=${tweetText}`;
4450
// Open Twitter share dialog

0 commit comments

Comments
 (0)