[Resolved] Facebook Share is not working. (#72)

This commit is contained in:
Qolzam
2018-07-14 23:28:15 +07:00
parent 930de94d1f
commit 6df2051650

View File

@@ -6,6 +6,7 @@ import SvgImage from '@material-ui/icons/Image'
import { withStyles } from '@material-ui/core/styles' import { withStyles } from '@material-ui/core/styles'
import { getTranslate, getActiveLanguage } from 'react-localize-redux' import { getTranslate, getActiveLanguage } from 'react-localize-redux'
import classNames from 'classnames' import classNames from 'classnames'
import {Map, List} from 'immutable'
import { import {
FacebookShareButton, FacebookShareButton,
@@ -107,7 +108,8 @@ export class ShareDialogComponent extends Component<IShareDialogComponentProps,
onShareWindowClose={onClose} onShareWindowClose={onClose}
url={`${location.origin}/${post.get('ownerUserId')}/posts/${post.get('id')}`} url={`${location.origin}/${post.get('ownerUserId')}/posts/${post.get('id')}`}
quote={post.get('body')} quote={post.get('body')}
hashtag={`#${post.getIn(['tags', 0], '')}`}> hashtag={post.get('tags', List<string>([])).count() > 0 ? `#${post.getIn(['tags', 0], 'hashtag') }` : null}
>
<MenuItem > <MenuItem >
<ListItemIcon classes={{ root: classes.networkShare }}> <ListItemIcon classes={{ root: classes.networkShare }}>
<FacebookIcon <FacebookIcon