Skip to content

Commit

Permalink
Remove not required data attribute for setting FB page plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
Thongchai Kitiyanantawong authored and Thongchai Kitiyanantawong committed Nov 1, 2017
1 parent 7c65e8c commit 7e49951
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/Page.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import PropTypes from 'prop-types';
import Parser from './Parser';
import getCurrentHref from './utils/getCurrentHref';

export default function Page(props, context) {
export default function Page(props) {
const {
className,
style,
Expand All @@ -20,14 +20,11 @@ export default function Page(props, context) {
onParse,
} = props;

const appId = context.facebook && context.facebook.props.appId;

return (
<Parser className={className} onParse={onParse}>
<div
className="fb-page"
style={style}
data-appID={appId}
data-tabs={tabs}
data-hide-cover={hideCover}
data-show-facepile={showFacepile}
Expand Down

0 comments on commit 7e49951

Please sign in to comment.