diff --git a/migrate-translations.js b/migrate-translations.js index 698c4e7d..0f0dbef5 100644 --- a/migrate-translations.js +++ b/migrate-translations.js @@ -19,7 +19,7 @@ const compareAndRemoveKeys = (json1, json2) => { const original = JSON.parse(fs.readFileSync(`./src/i18n/locales/en-GB.json`, 'utf8')); -fs.readdirSync('./src/i18n/locales').forEach(e => { +fs.readdirSync('./src/i18n/locales').forEach((e) => { if (!e.endsWith('json')) return; const data = JSON.parse(fs.readFileSync(`./src/i18n/locales/${e}`, 'utf8')); const name = e.replace('.json', ''); @@ -30,7 +30,7 @@ fs.readdirSync('./src/i18n/locales').forEach(e => { try { fs.mkdirSync(`./src/i18n/${name}`); - } catch (e) { } + } catch (e) {} const _addons = YAML.stringify(data.modals?.main?.addons) || '{}'; fs.writeFileSync(`./src/i18n/${name}/_addons.yml`, _addons); @@ -52,8 +52,7 @@ fs.readdirSync('./src/i18n/locales').forEach(e => { fs.writeFileSync(`./src/i18n/${name}/main.yml`, main); }); - -fs.readdirSync('./src/i18n/locales/achievements').forEach(e => { +fs.readdirSync('./src/i18n/locales/achievements').forEach((e) => { if (!e.endsWith('json')) return; const data = JSON.parse(fs.readFileSync(`./src/i18n/locales/achievements/${e}`, 'utf8')); const name = e.replace('.json', ''); diff --git a/postcss.config.js b/postcss.config.js index 33ad091d..12a703d9 100644 --- a/postcss.config.js +++ b/postcss.config.js @@ -3,4 +3,4 @@ module.exports = { tailwindcss: {}, autoprefixer: {}, }, -} +}; diff --git a/src/App.jsx b/src/App.jsx index 6f3456f8..e3a093ad 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -41,7 +41,8 @@ const App = () => { const [showBackground, setShowBackground] = useState(false); useEffect(() => { - const storedToastDisplayTime = localStorage.getItem('toastDisplayTime') || defaults.toastDisplayTime; + const storedToastDisplayTime = + localStorage.getItem('toastDisplayTime') || defaults.toastDisplayTime; const storedBackground = localStorage.getItem('background') || BackgroundDefaults.background; if (storedToastDisplayTime) { diff --git a/src/components/Elements/MainModal/backend/Tab.jsx b/src/components/Elements/MainModal/backend/Tab.jsx index 89dd2516..61933628 100644 --- a/src/components/Elements/MainModal/backend/Tab.jsx +++ b/src/components/Elements/MainModal/backend/Tab.jsx @@ -72,10 +72,7 @@ function Tab({ label, currentTab, onClick, navbarTab }) { const icon = iconMapping[label]; - if ( - label === variables.getMessage('settings:sections.experimental.title') && - !isExperimental - ) { + if (label === variables.getMessage('settings:sections.experimental.title') && !isExperimental) { return null; } diff --git a/src/components/Elements/MainModal/backend/TabContext.jsx b/src/components/Elements/MainModal/backend/TabContext.jsx index 8bbd34d8..f95e4f46 100644 --- a/src/components/Elements/MainModal/backend/TabContext.jsx +++ b/src/components/Elements/MainModal/backend/TabContext.jsx @@ -9,9 +9,7 @@ export const useTab = () => { export const TabProvider = ({ children }) => { const [activeTab, setActiveTab] = useState('settings'); - const [subTab, setSubTab] = useState( - variables.getMessage('marketplace:product.overview'), - ); + const [subTab, setSubTab] = useState(variables.getMessage('marketplace:product.overview')); const [subSection, setSubSection] = useState(''); const [direction, setDirection] = useState(1); diff --git a/src/components/Elements/ResetModal/ResetModal.jsx b/src/components/Elements/ResetModal/ResetModal.jsx index 7b2047ff..6beb55ba 100644 --- a/src/components/Elements/ResetModal/ResetModal.jsx +++ b/src/components/Elements/ResetModal/ResetModal.jsx @@ -17,9 +17,7 @@ function ResetModal({ modalClose }) { {variables.getMessage('settings:sections.advanced.reset_modal.title')} - +
diff --git a/src/components/Elements/Tooltip/Tooltip.jsx b/src/components/Elements/Tooltip/Tooltip.jsx index df874273..34d0630e 100644 --- a/src/components/Elements/Tooltip/Tooltip.jsx +++ b/src/components/Elements/Tooltip/Tooltip.jsx @@ -61,4 +61,4 @@ function Tooltip({ children, title, style, placement, subtitle }) { const MemoizedTooltip = memo(Tooltip); -export { MemoizedTooltip as default, MemoizedTooltip as Tooltip }; \ No newline at end of file +export { MemoizedTooltip as default, MemoizedTooltip as Tooltip }; diff --git a/src/components/Form/Settings/Dropdown/Dropdown.jsx b/src/components/Form/Settings/Dropdown/Dropdown.jsx index 708d9437..e531fb64 100644 --- a/src/components/Form/Settings/Dropdown/Dropdown.jsx +++ b/src/components/Form/Settings/Dropdown/Dropdown.jsx @@ -49,8 +49,22 @@ const Dropdown = (props) => { return (
- -
@@ -235,9 +226,7 @@ export default class CustomSettings extends PureComponent { {videoCheck(url) && } {this.state.customBackground.length > 0 && (