mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-08 14:02:41 +00:00
Lint fixes
This commit is contained in:
@@ -30,10 +30,10 @@ const ListPage = createClass({
|
|||||||
});
|
});
|
||||||
|
|
||||||
return {
|
return {
|
||||||
filterString : this.props.query?.filter || '',
|
filterString : this.props.query?.filter || '',
|
||||||
sortType : this.props.query?.sort || 'alpha',
|
sortType : this.props.query?.sort || 'alpha',
|
||||||
sortDir : this.props.query?.dir || 'asc',
|
sortDir : this.props.query?.dir || 'asc',
|
||||||
query : this.props.query,
|
query : this.props.query,
|
||||||
brewCollection : brewCollection
|
brewCollection : brewCollection
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -94,7 +94,7 @@ const NewPage = createClass({
|
|||||||
|
|
||||||
localStorage.setItem(BREWKEY, brew.text);
|
localStorage.setItem(BREWKEY, brew.text);
|
||||||
localStorage.setItem(STYLEKEY, brew.style);
|
localStorage.setItem(STYLEKEY, brew.style);
|
||||||
localStorage.setItem(METAKEY, JSON.stringify({'renderer' : brew.renderer}));
|
localStorage.setItem(METAKEY, JSON.stringify({ 'renderer': brew.renderer }));
|
||||||
},
|
},
|
||||||
componentWillUnmount : function() {
|
componentWillUnmount : function() {
|
||||||
document.removeEventListener('keydown', this.handleControlKeys);
|
document.removeEventListener('keydown', this.handleControlKeys);
|
||||||
|
|||||||
Reference in New Issue
Block a user