Browse Source

AGP-228, clean up jsx

all-modes^2
Miika Turunen 7 years ago
parent
commit
28334f4ba8
  1. 176
      react/src/components/dashboard/settings/settings.render.js

176
react/src/components/dashboard/settings/settings.render.js

@ -18,100 +18,94 @@ import WalletBackupPanel from './settings.walletBackupPanel';
export const SettingsRender = function() { export const SettingsRender = function() {
return ( return (
<div className="margin-left-0 full-height"> <div
<div id="section-iguana-wallet-settings"
className="page-content full-height" className="padding-30">
id="section-iguana-wallet-settings">
<div className="row"> <div className="row">
<div className="col-xlg-12 col-md-12"> <div className="col-sm-12">
<div className="row"> <h4 className="font-size-14 text-uppercase">{ translate('INDEX.WALLET_SETTINGS') }</h4>
<div className="col-xlg-12 col-md-12"> <Panel
<h4 className="font-size-14 text-uppercase">{ translate('INDEX.WALLET_SETTINGS') }</h4> uniqId={'SettingsAccordion'}
<Panel singleOpen={true}>
uniqId={'SettingsAccordion'} { !this.props.disableWalletSpecificUI &&
singleOpen={true}> <PanelSection
{ !this.props.disableWalletSpecificUI && title={ translate('INDEX.WALLET_INFO') }
<PanelSection icon="icon md-balance-wallet"
title={ translate('INDEX.WALLET_INFO') } openByDefault={!this.props.disableWalletSpecificUI}>
icon="icon md-balance-wallet" <WalletInfoPanel />
openByDefault={!this.props.disableWalletSpecificUI}> </PanelSection>
<WalletInfoPanel /> }
</PanelSection> { !this.props.disableWalletSpecificUI &&
} <PanelSection
{ !this.props.disableWalletSpecificUI && title={ translate('INDEX.ADD_NODE') }
<PanelSection icon="icon md-plus-square">
title={ translate('INDEX.ADD_NODE') } <AddNodePanel />
icon="icon md-plus-square"> </PanelSection>
<AddNodePanel /> }
</PanelSection> { !this.props.disableWalletSpecificUI &&
} <PanelSection
{ !this.props.disableWalletSpecificUI && title={ translate('INDEX.WALLET_BACKUP') }
<PanelSection icon="icon wb-briefcase">
title={ translate('INDEX.WALLET_BACKUP') } <WalletBackupPanel />
icon="icon wb-briefcase"> </PanelSection>
<WalletBackupPanel /> }
</PanelSection> { !this.props.disableWalletSpecificUI &&
} <PanelSection
{ !this.props.disableWalletSpecificUI && title={ translate('INDEX.FIAT_CURRENCY') }
<PanelSection icon="icon fa-money">
title={ translate('INDEX.FIAT_CURRENCY') } <FiatCurrencyPanel />
icon="icon fa-money"> </PanelSection>
<FiatCurrencyPanel /> }
</PanelSection> { !this.props.disableWalletSpecificUI &&
} <PanelSection
{ !this.props.disableWalletSpecificUI && title={ translate('INDEX.EXPORT_KEYS') }
<PanelSection icon="icon md-key">
title={ translate('INDEX.EXPORT_KEYS') } <ExportKeysPanel />
icon="icon md-key"> </PanelSection>
<ExportKeysPanel /> }
</PanelSection> { !this.props.disableWalletSpecificUI &&
} <PanelSection
{ !this.props.disableWalletSpecificUI && title={ translate('INDEX.IMPORT_KEYS') }
<PanelSection icon="icon md-key">
title={ translate('INDEX.IMPORT_KEYS') } <ImportKeysPanel />
icon="icon md-key"> </PanelSection>
<ImportKeysPanel /> }
</PanelSection> <PanelSection
} title={ translate('INDEX.DEBUG_LOG') }
<PanelSection icon="icon fa-bug"
title={ translate('INDEX.DEBUG_LOG') } openByDefault={this.props.disableWalletSpecificUI}>
icon="icon fa-bug" <DebugLogPanel />
openByDefault={this.props.disableWalletSpecificUI}> </PanelSection>
<DebugLogPanel /> <PanelSection
</PanelSection> title={ translate('SETTINGS.APP_CONFIG') + ' (config.json)' }
<PanelSection icon="icon fa-bug">
title={ translate('SETTINGS.APP_CONFIG') + ' (config.json)' } <AppSettingsPanel />
icon="icon fa-bug"> </PanelSection>
<AppSettingsPanel /> <PanelSection
</PanelSection> title={ translate('SETTINGS.APP_INFO') }
<PanelSection icon="icon md-info">
title={ translate('SETTINGS.APP_INFO') } <AppInfoPanel />
icon="icon md-info"> </PanelSection>
<AppInfoPanel /> { this.props.Main && this.props.Main.coins.native &&
</PanelSection> <PanelSection
{ this.props.Main && this.props.Main.coins.native && title="CLI"
<PanelSection icon="icon fa-code">
title="CLI" <CliPanel />
icon="icon fa-code"> </PanelSection>
<CliPanel /> }
</PanelSection> <PanelSection
} title={ translate('INDEX.UPDATE') }
<PanelSection icon="icon fa fa-cloud-download">
title={ translate('INDEX.UPDATE') } <AppUpdatePanel />
icon="icon fa fa-cloud-download"> </PanelSection>
<AppUpdatePanel /> <PanelSection
</PanelSection> title="Support"
<PanelSection icon="icon fa fa-life-ring">
title="Support" <SupportPanel />
icon="icon fa fa-life-ring"> </PanelSection>
<SupportPanel /> </Panel>
</PanelSection>
</Panel>
</div>
</div>
</div> </div>
</div> </div>
</div> </div>
</div>
); );
}; };
Loading…
Cancel
Save