mirror of
https://github.com/mue/mue.git
synced 2026-07-16 05:23:49 +02:00
feat(Language): remove unused quote language functionality and clean up code
This commit is contained in:
@@ -156,9 +156,8 @@ export function useQuoteLoader(updateQuote) {
|
||||
if (offline) return doOffline();
|
||||
|
||||
const fetchAPIQuote = async () => {
|
||||
const quoteLanguage = localStorage.getItem('quoteLanguage');
|
||||
const response = await fetch(
|
||||
`${variables.constants.API_URL}/quotes/random?language=${quoteLanguage}`
|
||||
`${variables.constants.API_URL}/quotes/random`
|
||||
).then(res => res.json());
|
||||
|
||||
if (response.statusCode === 429) return null;
|
||||
@@ -169,7 +168,6 @@ export function useQuoteLoader(updateQuote) {
|
||||
author: response.author,
|
||||
authorlink: getAuthorLink(response.author),
|
||||
...authorimgdata,
|
||||
quoteLanguage,
|
||||
authorOccupation: response.author_occupation,
|
||||
};
|
||||
};
|
||||
|
||||
@@ -11,7 +11,6 @@ export function useQuoteState() {
|
||||
authorlink: null,
|
||||
authorimg: null,
|
||||
authorimglicense: null,
|
||||
quoteLanguage: '',
|
||||
noQuote: false,
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user