fix: es_419 locale, run prettier, remove unused line

This commit is contained in:
David Ralph
2022-11-26 21:32:50 +00:00
committed by GitHub
parent 8035b35436
commit e161b82ad3
16 changed files with 65 additions and 54 deletions

View File

@@ -76,7 +76,11 @@ export default class LanguageSettings extends PureComponent {
{variables.getMessage('modals.main.settings.sections.language.quote')}
</span>
<div className="languageSettings">
<Radio name="quoteLanguage" options={this.state.quoteLanguages.map(l => l.name)} category="quote" />
<Radio
name="quoteLanguage"
options={this.state.quoteLanguages.map((l) => l.name)}
category="quote"
/>
</div>
</>
);

View File

@@ -106,12 +106,15 @@ export default class OrderSettings extends PureComponent {
async getNews() {
const data = await (await fetch(variables.constants.API_URL + '/news')).json();
data.date = new window.Date(data.date).toLocaleDateString(variables.languagecode.replace('_', '-'), {
year: 'numeric',
month: 'long',
day: 'numeric',
});
data.date = new window.Date(data.date).toLocaleDateString(
variables.languagecode.replace('_', '-'),
{
year: 'numeric',
month: 'long',
day: 'numeric',
},
);
this.setState({
news: data,
newsDone: true,

View File

@@ -164,7 +164,7 @@ export default class CustomSettings extends PureComponent {
compressAccurately(file, {
size: 450,
accuracy: 0.9
accuracy: 0.9,
}).then(async (res) => {
if (settingsSize + res.size > 4850000) {
return toast(variables.getMessage('toasts.no_storage'));