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:
parent
790057bfa8
commit
25f5e66268
1 changed files with 1 additions and 7 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Reference in a new issue