fix: stats localisation, marketplace title

This commit is contained in:
David Ralph
2026-01-24 15:33:19 +00:00
parent f58ad986da
commit 8beda77a76
72 changed files with 145 additions and 79 deletions

View File

@@ -14,9 +14,6 @@ import {
import { Checkbox, Dropdown } from 'components/Form/Settings';
import { Button } from 'components/Elements';
import { toast } from 'react-toastify';
import EventBus from 'utils/eventbus';
const QuoteOptions = () => {
const getCustom = () => {
let data = JSON.parse(localStorage.getItem('customQuote'));
@@ -30,13 +27,6 @@ const QuoteOptions = () => {
const [customQuote, setCustomQuote] = useState(getCustom());
const [sourceSection, setSourceSection] = useState(false);
const resetCustom = () => {
localStorage.setItem('customQuote', '[{"quote": "", "author": ""}]');
setCustomQuote([{ quote: '', author: '' }]);
toast(variables.getMessage('toasts.reset'));
EventBus.emit('refresh', 'background');
};
const handleCustomQuote = (e, text, index, type) => {
const result = text === true ? e.target.value : e.target.result;
@@ -102,7 +92,7 @@ const QuoteOptions = () => {
items={[
localStorage.getItem('quote_packs') && {
value: 'quote_pack',
text: variables.getMessage('modals.main.navbar.marketplace'),
text: variables.getMessage('modals.main.marketplace.title'),
},
{
value: 'api',