We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fd1eea9 commit 59079ecCopy full SHA for 59079ec
source/views/news/news-item.js
@@ -6,9 +6,12 @@ import type {StoryType} from './types'
6
import {ShareButton} from '../components/nav-buttons'
7
8
const shareItem = (story: StoryType) => {
9
+ if (!story.link) {
10
+ return
11
+ }
12
Share.share({
13
url: story.link,
- message: story.link,
14
+ title: story.title,
15
})
16
.then(result => console.log(result))
17
.catch(error => console.log(error.message))
0 commit comments