File tree 1 file changed +8
-2
lines changed
apps/dashboard/src/app/team/[team_slug]/(team)/_components 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 1
1
"use client" ;
2
2
import { useState } from "react" ;
3
3
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 ) {
5
11
const [ isSharing , setIsSharing ] = useState ( false ) ;
6
12
const [ shareStatus , setShareStatus ] = useState ( null ) ;
7
13
@@ -38,7 +44,7 @@ export default function ShareTwitterButton({ targetId }) {
38
44
link . click ( ) ;
39
45
// Prepare Twitter share URL with better text prompt
40
46
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. " ,
42
48
) ;
43
49
const twitterUrl = `https://twitter.com/intent/tweet?text=${ tweetText } ` ;
44
50
// Open Twitter share dialog
You can’t perform that action at this time.
0 commit comments