diff --git a/packages/app-settings/src/General.tsx b/packages/app-settings/src/General.tsx index 5227cecd94..1affc202fb 100644 --- a/packages/app-settings/src/General.tsx +++ b/packages/app-settings/src/General.tsx @@ -7,7 +7,7 @@ import { SettingsStruct } from '@polkadot/ui-settings/types'; import React from 'react'; import styled from 'styled-components'; -import { Button, Dropdown, Input } from '@polkadot/ui-app'; +import { Button, Dropdown, Input, Toggle } from '@polkadot/ui-app'; import { ActionStatus } from '@polkadot/ui-app/Status/types'; import uiSettings from '@polkadot/ui-settings'; @@ -23,23 +23,6 @@ type State = { settings: SettingsStruct }; -const Wrapper = styled.div` - .ui.menu { - justify-content: flex-end; - margin-bottom: 0; - - .active.item { - font-weight: bold; - } - } - - .sub-label { - cursor: pointer; - padding: 0rem .5833rem; - text-align: right; - } -`; - class General extends React.PureComponent { constructor (props: Props) { super(props); @@ -57,11 +40,11 @@ class General extends React.PureComponent { } render () { - const { t } = this.props; + const { className, t } = this.props; const { isUrlValid, settings: { i18nLang, uiMode, uiTheme } } = this.state; return ( - +
{this.renderEndpoint()}
@@ -101,7 +84,7 @@ class General extends React.PureComponent { label={t('Save & Reload')} /> - +
); } @@ -111,20 +94,12 @@ class General extends React.PureComponent { return ( <> - -