Skip to content

Commit 9db8e9c

Browse files
committed
Tweak "just bought" tweet message
1 parent 3c23e06 commit 9db8e9c

2 files changed

Lines changed: 6 additions & 10 deletions

File tree

landing/src/pages/SuccessPage.tsx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -193,11 +193,9 @@ export default function SuccessPage(_props: SuccessPageProps) {
193193
<Button
194194
type="primary"
195195
href={`https://twitter.com/intent/tweet?text=${encodeURIComponent(
196-
`I've just bought @devhub_app${
197-
authData.plan.type === 'team'
198-
? ' for my team!'
199-
: " and it's awesome!"
200-
} https://devhubapp.com`,
196+
`I just bought @devhub_app${
197+
authData.plan.type === 'team' ? ' for my team!' : ''
198+
} https://devhubapp.com/`,
201199
)}`}
202200
target="_blank"
203201
className="mb-2 mr-2"

packages/components/src/components/modals/SubscribedModal.tsx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -188,11 +188,9 @@ export function SubscribedModal(props: SubscribedModalProps) {
188188
onPress={() => {
189189
Browser.openURLOnNewTab(
190190
`https://twitter.com/intent/tweet?text=${encodeURIComponent(
191-
`I've just bought @devhub_app${
192-
plan.type === 'team'
193-
? ' for my team!'
194-
: " and it's awesome!"
195-
} https://devhubapp.com`,
191+
`I just bought @devhub_app${
192+
plan.type === 'team' ? ' for my team' : ''
193+
} https://devhubapp.com/`,
196194
)}`,
197195
)
198196
}}

0 commit comments

Comments
 (0)