mirror of
https://github.com/mue/mue.git
synced 2026-07-23 08:47:19 +02:00
feat: update project configuration and dependencies
- Updated jsconfig.json to use ESNext module and target, added JSX support, and improved path mappings. - Modified package.json to set module type, updated dependencies including React and MUI, and added new dev dependencies for ESLint and Husky. - Refactored Favourite component to improve tooltip handling with lifecycle methods. - Replaced @muetab/react-sortable-hoc with @dnd-kit for drag-and-drop functionality in Overview, Todo, and QuickLinksOptions components. - Enhanced QuickLinksOptions to support drag-and-drop reordering with updated state management. - Updated Vite configuration to target ESNext for modern JavaScript features. - Added Husky pre-commit hook for linting. - Created .nvmrc file to specify Node.js version. - Added ESLint configuration for improved code quality and consistency.
This commit is contained in:
@@ -196,7 +196,7 @@ class Quote extends PureComponent {
|
||||
|
||||
const favouriteQuote = localStorage.getItem('favouriteQuote');
|
||||
if (favouriteQuote) {
|
||||
let author = favouriteQuote.split(' - ')[1];
|
||||
const author = favouriteQuote.split(' - ')[1];
|
||||
const authorimgdata = await this.getAuthorImg(author);
|
||||
return this.setState({
|
||||
quote: favouriteQuote.split(' - ')[0],
|
||||
@@ -298,7 +298,7 @@ class Quote extends PureComponent {
|
||||
|
||||
// First we try and get a quote from the API...
|
||||
try {
|
||||
let data = JSON.parse(localStorage.getItem('nextQuote')) || (await getAPIQuoteData());
|
||||
const data = JSON.parse(localStorage.getItem('nextQuote')) || (await getAPIQuoteData());
|
||||
localStorage.setItem('nextQuote', null);
|
||||
if (data) {
|
||||
this.setState(data);
|
||||
|
||||
Reference in New Issue
Block a user