Skip to content

Commit

Permalink
Merge pull request #52 from mypum/fixWarningAppID
Browse files Browse the repository at this point in the history
Remove not required data attribute to setting FB page plugin
  • Loading branch information
seeden authored Nov 8, 2017
2 parents 7c65e8c + efcba96 commit 15d9d5c
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 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 Expand Up @@ -78,7 +75,3 @@ Page.defaultProps = {
className: undefined,
onParse: undefined,
};

Page.contextTypes = {
facebook: PropTypes.object.isRequired,
};

0 comments on commit 15d9d5c

Please sign in to comment.