mirror of
https://github.com/stolksdorf/homebrewery.git
synced 2025-12-20 15:31:28 +00:00
ESLint reformatting
This commit is contained in:
@@ -62,7 +62,7 @@ const EditPage = createClass({
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
this.setState((prevState) => ({
|
this.setState((prevState)=>({
|
||||||
htmlErrors : Markdown.validate(prevState.brew.text)
|
htmlErrors : Markdown.validate(prevState.brew.text)
|
||||||
}));
|
}));
|
||||||
|
|
||||||
@@ -128,7 +128,7 @@ const EditPage = createClass({
|
|||||||
save : function(){
|
save : function(){
|
||||||
if(this.debounceSave && this.debounceSave.cancel) this.debounceSave.cancel();
|
if(this.debounceSave && this.debounceSave.cancel) this.debounceSave.cancel();
|
||||||
|
|
||||||
this.setState((prevState) => ({
|
this.setState((prevState)=>({
|
||||||
isSaving : true,
|
isSaving : true,
|
||||||
errors : null,
|
errors : null,
|
||||||
htmlErrors : Markdown.validate(prevState.brew.text)
|
htmlErrors : Markdown.validate(prevState.brew.text)
|
||||||
@@ -166,7 +166,7 @@ const EditPage = createClass({
|
|||||||
<div className='errorContainer'>
|
<div className='errorContainer'>
|
||||||
Looks like there was a problem saving. <br />
|
Looks like there was a problem saving. <br />
|
||||||
Report the issue <a target='_blank' rel='noopener noreferrer'
|
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
|
here
|
||||||
</a>.
|
</a>.
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -22,8 +22,8 @@ const PrintPage = createClass({
|
|||||||
|
|
||||||
componentDidMount : function() {
|
componentDidMount : function() {
|
||||||
if(this.props.query.local){
|
if(this.props.query.local){
|
||||||
this.setState((prevState, prevProps) => ({
|
this.setState((prevState, prevProps)=>({
|
||||||
brewText: localStorage.getItem(prevProps.query.local)
|
brewText : localStorage.getItem(prevProps.query.local)
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user