Fixed lint warnings

no issue
This commit is contained in:
Rish 2020-05-27 17:11:43 +05:30
parent 5640137bd3
commit bb7200dabf
4 changed files with 4 additions and 27 deletions

View File

@ -90,7 +90,7 @@ class FreeAccountHomePage extends React.Component {
<span style={{fontWeight: 'bold'}}>Hey {firstname || name || email}! </span>
You are subscribed to free updates from <span style={{fontWeight: 'bold'}}>{siteTitle}</span>, but you don't have a paid subscription to unlock full access
</div>
<ActionButton label="Subscribe now" onClick={e => this.openSubscribe(e)} brandColor={this.context.brandColor} />
<ActionButton label="Subscribe now" onClick={() => this.openSubscribe()} brandColor={this.context.brandColor} />
</div>
);
}

View File

@ -80,29 +80,6 @@ export default class AccountProfilePage extends React.Component {
);
}
openSettings(e) {
// no-op
}
openSubscribe(e) {
//no-op
}
renderAccountDetail(e) {
const {name, firstname, email} = this.context.member;
const siteTitle = this.context.site.title;
return (
<div style={{padding: '0 24px'}}>
<div style={{textAlign: 'center', marginBottom: '12px', fontSize: '14px'}}>
<span style={{fontWeight: 'bold'}}>Hey {firstname || name || email}! </span>
You are subscribed to free updates from <span style={{fontWeight: 'bold'}}>{siteTitle}</span>, but you don't have a paid subscription to unlock full access
</div>
<ActionButton label="Subscribe now" onClick={e => this.openSubscribe(e)} brandColor={this.context.brandColor} />
</div>
);
}
handleInput(e, field) {
this.setState({
[field]: e.target.value
@ -131,7 +108,7 @@ export default class AccountProfilePage extends React.Component {
return (
<InputField
{...field}
onChange={(e, fieldName) => this.handleInput(e, fieldName)}
onChange={(e, name) => this.handleInput(e, name)}
/>
);
}

View File

@ -61,7 +61,7 @@ export default class SigninPage extends React.Component {
name={field.name}
placeholder={field.placeholder}
value={field.value}
onChange={(e, fieldName) => this.handleInput(e, fieldName)}
onChange={(e, name) => this.handleInput(e, name)}
/>
);
}

View File

@ -96,7 +96,7 @@ class SignupPage extends React.Component {
name={field.name}
placeholder={field.placeholder}
value={field.value}
onChange={(e, fieldName) => this.handleInput(e, fieldName)}
onChange={(e, name) => this.handleInput(e, name)}
/>
);
}