[Resolved] Facebook Share is not working. (#72)
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user