fix: missing translations, create tab back button

This commit is contained in:
David Ralph
2022-12-20 11:25:06 +00:00
committed by GitHub
parent b1ac03977e
commit 41293f075a
4 changed files with 6 additions and 7 deletions

View File

@@ -494,12 +494,12 @@ export default class Create extends PureComponent {
{this.state.currentTab !== 1 && (
<div className="returnButton">
<Tooltip
title={variables.getMessage('modals.main.navbar.marketplace.product.buttons.back')}
title={variables.getMessage('modals.main.marketplace.product.buttons.back')}
key="backArrow"
>
<MdArrowBack
className="backArrow"
onClick={() => this.changeTab(this.state.currentTab - 1)}
onClick={() => this.changeTab(1)}
/>
</Tooltip>
</div>

View File

@@ -1,12 +1,10 @@
import variables from 'modules/variables';
import TextField from '@mui/material/TextField';
import { PureComponent } from 'react';
import { toast } from 'react-toastify';
import {
MdWifiOff,
MdLocalMall,
MdOutlineKeyboardArrowRight,
MdRefresh,
MdSearch,
MdOutlineArrowForward,
} from 'react-icons/md';
@@ -365,8 +363,8 @@ export default class Marketplace extends PureComponent {
<div>
<form className="marketplaceSearch">
<input
label="Search"
placeholder="Search"
label={variables.getMessage('widgets.search')}
placeholder={variables.getMessage('widgets.search')}
name="filter"
id="filter"
value={this.state.filter}

View File

@@ -384,7 +384,7 @@ export default class WelcomeSections extends PureComponent {
<div className="toggle" onClick={() => this.props.switchTab(3)}>
<span>
{variables.getMessage('modals.main.settings.sections.appearance.theme.title')}:{' '}
{this.getSetting('theme')}
{variables.getMessage('modals.main.settings.sections.appearance.theme.' + localStorage.getItem('theme'))}
</span>
</div>
{this.state.importedSettings.length !== 0 ? (

View File

@@ -1,5 +1,6 @@
// since there is so much code in the component, we have moved it to a separate file
import offlineImages from './offlineImages.json';
export function videoCheck(url) {
return (
url.startsWith('data:video/') ||