diff --git a/src/components/modals/main/Main.jsx b/src/components/modals/main/Main.jsx index 5547c4e1..8db10b40 100644 --- a/src/components/modals/main/Main.jsx +++ b/src/components/modals/main/Main.jsx @@ -4,27 +4,21 @@ import Settings from './tabs/Settings'; import Addons from './tabs/Addons'; import Marketplace from './tabs/Marketplace'; -import Navigation from './tabs/backend/Tabs'; +import Tabs from './tabs/backend/Tabs'; import './scss/index.scss'; export default function MainModal(props) { - const language = window.language; + const language = window.language.modals.main.navbar; return ( <> × - -
- -
-
- -
-
- -
-
+ +
+
+
+
); } diff --git a/src/components/modals/main/settings/Checkbox.jsx b/src/components/modals/main/settings/Checkbox.jsx index 409a2bff..f7f4520e 100644 --- a/src/components/modals/main/settings/Checkbox.jsx +++ b/src/components/modals/main/settings/Checkbox.jsx @@ -25,9 +25,9 @@ export default class Checkbox extends React.PureComponent { let text = this.props.text; if (this.props.newFeature) { - text = {this.props.text} NEW; + text = <>{this.props.text} NEW; } else if (this.props.betaFeature) { - text = {this.props.text} BETA; + text = <>{this.props.text} BETA; } return ( diff --git a/src/components/modals/main/settings/Switch.jsx b/src/components/modals/main/settings/Switch.jsx index bfdedd01..76e516f1 100644 --- a/src/components/modals/main/settings/Switch.jsx +++ b/src/components/modals/main/settings/Switch.jsx @@ -25,9 +25,9 @@ export default class Switch extends React.PureComponent { let text = this.props.text; if (this.props.newFeature) { - text = {this.props.text} NEW; + text = <>{this.props.text} NEW; } else if (this.props.betaFeature) { - text = {this.props.text} BETA; + text = <>{this.props.text} BETA; } return ( diff --git a/src/components/modals/main/settings/sections/Background.jsx b/src/components/modals/main/settings/sections/Background.jsx index 199a254b..4e39033f 100644 --- a/src/components/modals/main/settings/sections/Background.jsx +++ b/src/components/modals/main/settings/sections/Background.jsx @@ -176,7 +176,7 @@ export default class BackgroundSettings extends React.PureComponent { onChange={(color) => this.onColorPickerChange(color, 'change')} onEndChange={(color) => this.onColorPickerChange(color, 'end')} gradient={this.GradientPickerInitalState} - isGradient /> + isGradient/> ); } else { gradientInputs = this.state.gradientSettings.gradient.map((g, i) => { @@ -190,12 +190,12 @@ export default class BackgroundSettings extends React.PureComponent { } colourSettings = ( -
+ <> {gradientInputs} {this.state.gradientSettings.gradient[0].colour !== background.source.disabled && !gradientHasMoreThanOneColour ? () : null } -
+ ); } diff --git a/src/components/modals/main/tabs/Addons.jsx b/src/components/modals/main/tabs/Addons.jsx index 98749cf8..0bf4d638 100644 --- a/src/components/modals/main/tabs/Addons.jsx +++ b/src/components/modals/main/tabs/Addons.jsx @@ -6,15 +6,9 @@ import AddonsTabs from './backend/Tabs'; export default function Addons() { return ( - <> - -
- -
-
- -
-
- + +
+
+
); } diff --git a/src/components/modals/main/tabs/Marketplace.jsx b/src/components/modals/main/tabs/Marketplace.jsx index 64ff0e33..fd6f0f43 100644 --- a/src/components/modals/main/tabs/Marketplace.jsx +++ b/src/components/modals/main/tabs/Marketplace.jsx @@ -1,19 +1,14 @@ import React from 'react'; -import MarketplaceBackend from '../marketplace/sections/Marketplace'; -import MarketplaceTabs from './backend/Tabs'; +import MarketplaceTab from '../marketplace/sections/Marketplace'; + +import Tabs from './backend/Tabs'; export default function Marketplace() { return ( - <> - -
- -
-
- -
-
- + +
+
+
); } diff --git a/src/components/modals/main/tabs/Settings.jsx b/src/components/modals/main/tabs/Settings.jsx index 1dc7968e..7be56839 100644 --- a/src/components/modals/main/tabs/Settings.jsx +++ b/src/components/modals/main/tabs/Settings.jsx @@ -12,13 +12,13 @@ import Advanced from '../settings/sections/Advanced'; import Changelog from '../settings/sections/Changelog'; import Order from '../settings/sections/Order'; -import SettingsTabs from './backend/Tabs'; +import Tabs from './backend/Tabs'; export default function Settings() { const language = window.language.modals.main.settings.sections; return ( <> - +
@@ -31,7 +31,7 @@ export default function Settings() {
-
+

IMPORTANT INFO

In order for changes to take place, the page must be refreshed.

diff --git a/src/components/modals/main/tabs/backend/Tabs.jsx b/src/components/modals/main/tabs/backend/Tabs.jsx index 59837a46..bdd12d0e 100644 --- a/src/components/modals/main/tabs/backend/Tabs.jsx +++ b/src/components/modals/main/tabs/backend/Tabs.jsx @@ -32,7 +32,7 @@ export default class Tabs extends React.PureComponent { return (