1
0
mirror of https://github.com/stolksdorf/homebrewery.git synced 2025-12-16 03:55:55 +00:00

ESLint reformatting

This commit is contained in:
Rae Che
2018-05-27 14:04:35 +01:00
committed by Trevor Buckner
parent f2f45f3657
commit a369871a06
2 changed files with 5 additions and 5 deletions

View File

@@ -62,7 +62,7 @@ const EditPage = createClass({
}
};
this.setState((prevState) => ({
this.setState((prevState)=>({
htmlErrors : Markdown.validate(prevState.brew.text)
}));
@@ -128,7 +128,7 @@ const EditPage = createClass({
save : function(){
if(this.debounceSave && this.debounceSave.cancel) this.debounceSave.cancel();
this.setState((prevState) => ({
this.setState((prevState)=>({
isSaving : true,
errors : null,
htmlErrors : Markdown.validate(prevState.brew.text)
@@ -166,7 +166,7 @@ const EditPage = createClass({
<div className='errorContainer'>
Looks like there was a problem saving. <br />
Report the issue <a target='_blank' rel='noopener noreferrer'
href={`https://github.com/stolksdorf/naturalcrit/issues/new?body=${encodeURIComponent(errMsg)}`}>
href={`https://github.com/stolksdorf/naturalcrit/issues/new?body=${encodeURIComponent(errMsg)}`}>
here
</a>.
</div>

View File

@@ -22,8 +22,8 @@ const PrintPage = createClass({
componentDidMount : function() {
if(this.props.query.local){
this.setState((prevState, prevProps) => ({
brewText: localStorage.getItem(prevProps.query.local)
this.setState((prevState, prevProps)=>({
brewText : localStorage.getItem(prevProps.query.local)
}));
}