File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
exercises/99.final/99.solution/app/routes/ui Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -113,10 +113,11 @@ function XPostLinkImpl({ entryCount }: { entryCount: number }) {
113113 const handlePostOnX = ( ) => {
114114 startTransition ( async ( ) => {
115115 try {
116- const text = `I have ${ entryCount } journal ${ entryCount === 1 ? 'entry' : 'entries' } in my personal journal app! 📝✨`
117- const url = `https://x.com/intent/post?text=${ encodeURIComponent ( text ) } `
116+ const text = `I have ${ entryCount } journal ${ entryCount === 1 ? 'entry' : 'entries' } in my EpicMe journal! 📝✨`
117+ const url = new URL ( 'https://x.com/intent/post' )
118+ url . searchParams . set ( 'text' , text )
118119
119- await navigateToLink ( url )
120+ await navigateToLink ( url . toString ( ) )
120121 } catch ( err ) {
121122 showBoundary ( err )
122123 }
You can’t perform that action at this time.
0 commit comments