fix: font settings and quote widget

This commit is contained in:
David Ralph
2021-04-08 19:52:17 +01:00
parent 5cf9bd74f4
commit 2670c917b7
17 changed files with 26 additions and 24 deletions

View File

@@ -19,7 +19,7 @@ export default class Widgets extends React.PureComponent {
quote: this.enabled('quote') ? <Quote/> : null,
date: this.enabled('date') ? <Date/> : null,
quicklinks: this.enabled('quicklinksenabled') ? <QuickLinks/> : null
}
};
}
enabled(key) {
@@ -75,7 +75,7 @@ export default class Widgets extends React.PureComponent {
const order = JSON.parse(localStorage.getItem('order'));
if (order) {
order.forEach(element => {
order.forEach((element) => {
elements.push(<React.Fragment key={element}>{this.widgets[element]}</React.Fragment>);
});
} else {