mirror of
https://github.com/mue/mue.git
synced 2026-07-27 18:51:05 +02:00
bug fixes
This commit is contained in:
@@ -118,19 +118,27 @@ export default class Quote extends React.PureComponent {
|
||||
|
||||
componentDidMount() {
|
||||
if (localStorage.getItem('favouriteQuote')) {
|
||||
this.setState({ favourited: <StarIcon className='copyButton' onClick={() => this.favourite()} /> });
|
||||
this.setState({
|
||||
favourited: <StarIcon className='copyButton' onClick={() => this.favourite()} />
|
||||
});
|
||||
}
|
||||
|
||||
if (localStorage.getItem('favouriteQuoteEnabled') === 'false') {
|
||||
this.setState({ favourited: null });
|
||||
this.setState({
|
||||
favourited: null
|
||||
});
|
||||
}
|
||||
|
||||
if (localStorage.getItem('copyButton') === 'false') {
|
||||
this.setState({ copy: null });
|
||||
this.setState({
|
||||
copy: null
|
||||
});
|
||||
}
|
||||
|
||||
if (localStorage.getItem('tweetEnabled') === 'false') {
|
||||
this.setState({ tweet: null });
|
||||
if (localStorage.getItem('tweetButton') === 'false') {
|
||||
this.setState({
|
||||
tweet: null
|
||||
});
|
||||
}
|
||||
|
||||
this.getQuote();
|
||||
|
||||
Reference in New Issue
Block a user