0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-17 23:44:39 -05:00

Removed unused ref and styles

closes https://github.com/TryGhost/members.js/issues/76

- Removes unused ref calculation for height as its moved inline with frame changes
This commit is contained in:
Rish 2020-08-13 18:11:01 +05:30
parent 790057bfa8
commit 25f5e66268

View file

@ -41,12 +41,6 @@ const StylesWrapper = ({member}) => {
class PopupContent extends React.Component {
static contextType = AppContext;
constructor(props) {
super(props);
this.state = { };
this.container = React.createRef();
}
renderActivePage() {
const {page} = this.context;
getActivePage({page});
@ -73,7 +67,7 @@ class PopupContent extends React.Component {
...Styles.page[page]
};
return (
<div className={hasMode(['preview', 'dev']) ? 'gh-portal-popup-container preview' : 'gh-portal-popup-container'} style={pageStyle} ref={this.container}>
<div className={hasMode(['preview', 'dev']) ? 'gh-portal-popup-container preview' : 'gh-portal-popup-container'} style={pageStyle}>
{this.renderPopupClose()}
{this.renderActivePage()}
</div>