feat: hot reload and fixes for weather, quicklinks and quote

This commit is contained in:
David Ralph
2021-04-13 10:51:36 +01:00
parent f5b8346a26
commit 5c638ec355
10 changed files with 106 additions and 59 deletions

View File

@@ -155,8 +155,10 @@ export default class Quote extends React.PureComponent {
copy: (localStorage.getItem('copyButton') === 'false') ? null : this.buttons.copy,
tweet: (localStorage.getItem('tweetButton') === 'false') ? null : this.buttons.tweet
});
this.getQuote();
if (!this.state.quote) {
this.getQuote();
}
}
componentDidMount() {