diff --git a/packages/app-accounts/src/index.css b/packages/app-accounts/src/index.css index a43f7dcf35..1a5402133d 100644 --- a/packages/app-accounts/src/index.css +++ b/packages/app-accounts/src/index.css @@ -1,12 +1,3 @@ /* Copyright 2017-2018 @polkadot/app-accounts authors & contributors /* This software may be modified and distributed under the terms /* of the ISC license. See the LICENSE file for details. */ - -.accounts--App { - padding: 1em 2em; -} - -.accounts--App-navigation.ui--Button-Group { - margin-bottom: 2em; - text-align: center; -} diff --git a/packages/app-accounts/src/index.tsx b/packages/app-accounts/src/index.tsx index 7294d43f67..258539c022 100644 --- a/packages/app-accounts/src/index.tsx +++ b/packages/app-accounts/src/index.tsx @@ -9,6 +9,8 @@ import './index.css'; import React from 'react'; import Button from '@polkadot/ui-app/Button'; +import Navigation from '@polkadot/ui-app/Navigation'; +import Page from '@polkadot/ui-app/Page'; import classes from '@polkadot/ui-app/util/classes'; import Creator from './Creator'; @@ -38,29 +40,31 @@ class AccountsApp extends React.PureComponent { const Component = Components[action]; return ( -
- -
+ ); } diff --git a/packages/app-addresses/src/index.css b/packages/app-addresses/src/index.css index 14da187f6a..496808696e 100644 --- a/packages/app-addresses/src/index.css +++ b/packages/app-addresses/src/index.css @@ -1,12 +1,3 @@ /* Copyright 2017-2018 @polkadot/app-addresses authors & contributors /* This software may be modified and distributed under the terms /* of the ISC license. See the LICENSE file for details. */ - -.addresses--App { - padding: 1em 2em; -} - -.addresses--App-navigation.ui--Button-Group { - margin-bottom: 2em; - text-align: center; -} diff --git a/packages/app-addresses/src/index.tsx b/packages/app-addresses/src/index.tsx index 30da459f8f..8fd86ddf05 100644 --- a/packages/app-addresses/src/index.tsx +++ b/packages/app-addresses/src/index.tsx @@ -9,6 +9,9 @@ import './index.css'; import React from 'react'; import Button from '@polkadot/ui-app/Button'; +import Navigation from '@polkadot/ui-app/Navigation'; +import Page from '@polkadot/ui-app/Page'; + import classes from '@polkadot/ui-app/util/classes'; import Creator from './Creator'; @@ -38,29 +41,31 @@ class AddressesApp extends React.PureComponent { const Component = Components[action]; return ( -
- -
+ ); } diff --git a/packages/app-example/src/index.css b/packages/app-example/src/index.css index 7a0a0f88e8..25b71c5bb1 100644 --- a/packages/app-example/src/index.css +++ b/packages/app-example/src/index.css @@ -2,10 +2,6 @@ /* This software may be modified and distributed under the terms /* of the ISC license. See the LICENSE file for details. */ -.example--App { - padding: 1em 2em; -} - .example--App .navigation { margin-bottom: 1em; } diff --git a/packages/app-example/src/index.tsx b/packages/app-example/src/index.tsx index 02e20b11cf..96eb089bd7 100644 --- a/packages/app-example/src/index.tsx +++ b/packages/app-example/src/index.tsx @@ -3,6 +3,8 @@ // of the ISC license. See the LICENSE file for details. import React from 'react'; +import Navigation from '@polkadot/ui-app/Navigation'; +import Page from '@polkadot/ui-app/Page'; import './index.css'; @@ -34,14 +36,14 @@ export default class App extends React.PureComponent { const { Component } = this.state; return ( -
-
{ + + { Object.keys(Components).map((name) => ( this.onSelect(name)}>{name} )) - }
+ }
-
+ ); } diff --git a/packages/app-explorer/src/index.css b/packages/app-explorer/src/index.css index 4c21f2c156..50530cc3c9 100644 --- a/packages/app-explorer/src/index.css +++ b/packages/app-explorer/src/index.css @@ -2,10 +2,6 @@ /* This software may be modified and distributed under the terms /* of the ISC license. See the LICENSE file for details. */ -.explorer--App { - padding: 1em 2em; -} - .explorer--App .rx--updated { background: transparent !important; } diff --git a/packages/app-explorer/src/index.tsx b/packages/app-explorer/src/index.tsx index d3e7ffe1c7..de8c7b1715 100644 --- a/packages/app-explorer/src/index.tsx +++ b/packages/app-explorer/src/index.tsx @@ -7,7 +7,7 @@ import { I18nProps } from '@polkadot/ui-app/types'; import './index.css'; import React from 'react'; - +import Page from '@polkadot/ui-app/Page'; import classes from '@polkadot/ui-app/util/classes'; import BestNumber from '@polkadot/ui-react-rx/BestNumber'; @@ -22,7 +22,7 @@ class ExplorerApp extends React.PureComponent { const { className, style, t } = this.props; return ( -
@@ -34,7 +34,7 @@ class ExplorerApp extends React.PureComponent { /> -
+ ); } } diff --git a/packages/app-extrinsics/src/index.css b/packages/app-extrinsics/src/index.css index 12a0a4b9ac..4bf1648ebc 100644 --- a/packages/app-extrinsics/src/index.css +++ b/packages/app-extrinsics/src/index.css @@ -1,7 +1,3 @@ /* Copyright 2017-2018 @polkadot/app-extrinsics authors & contributors /* This software may be modified and distributed under the terms /* of the ISC license. See the LICENSE file for details. */ - -.extrinsics--App { - padding: 1em 2em; -} diff --git a/packages/app-extrinsics/src/index.tsx b/packages/app-extrinsics/src/index.tsx index da31d3ae93..d8ea54d706 100644 --- a/packages/app-extrinsics/src/index.tsx +++ b/packages/app-extrinsics/src/index.tsx @@ -8,7 +8,7 @@ import { QueueProps } from '@polkadot/ui-signer/types'; import './index.css'; import React from 'react'; - +import Page from '@polkadot/ui-app/Page'; import classes from '@polkadot/ui-app/util/classes'; import { QueueConsumer } from '@polkadot/ui-signer/Context'; @@ -21,7 +21,7 @@ export default class ExtrinsicsApp extends React.PureComponent { const { className, style } = this.props; return ( -
@@ -30,7 +30,7 @@ export default class ExtrinsicsApp extends React.PureComponent { )} -
+ ); } } diff --git a/packages/app-rpc/src/index.css b/packages/app-rpc/src/index.css index 965ce48fca..fa1a2f25ef 100644 --- a/packages/app-rpc/src/index.css +++ b/packages/app-rpc/src/index.css @@ -2,10 +2,6 @@ /* This software may be modified and distributed under the terms /* of the ISC license. See the LICENSE file for details. */ -.rpc--App { - padding: 1em 2em; -} - .rpc--Account { box-sizing: border-box; padding-left: 2em; diff --git a/packages/app-rpc/src/index.tsx b/packages/app-rpc/src/index.tsx index 2a929e9b6a..035e9275f6 100644 --- a/packages/app-rpc/src/index.tsx +++ b/packages/app-rpc/src/index.tsx @@ -8,7 +8,7 @@ import { QueueProps } from '@polkadot/ui-signer/types'; import './index.css'; import React from 'react'; - +import Page from '@polkadot/ui-app/Page'; import classes from '@polkadot/ui-app/util/classes'; import { QueueConsumer } from '@polkadot/ui-signer/Context'; @@ -22,7 +22,7 @@ export default class RpcApp extends React.PureComponent { const { className, style } = this.props; return ( -
@@ -38,7 +38,7 @@ export default class RpcApp extends React.PureComponent { /> ]} -
+ ); } } diff --git a/packages/app-staking/src/index.css b/packages/app-staking/src/index.css index 975e33cd77..01b68e5baa 100644 --- a/packages/app-staking/src/index.css +++ b/packages/app-staking/src/index.css @@ -2,17 +2,13 @@ /* This software may be modified and distributed under the terms /* of the ISC license. See the LICENSE file for details. */ -.staking--App { - padding: 1em 2rem; -} - .staking--Summary { margin-bottom: 2rem; text-align: right; } .staking--Account { - background: #f9f9f9; + border: 1px solid #f5f5f5; border-radius: 0.25rem; display: inline-block; margin: 1rem; diff --git a/packages/app-staking/src/index.tsx b/packages/app-staking/src/index.tsx index 2c5c00793c..a2da70bd2d 100644 --- a/packages/app-staking/src/index.tsx +++ b/packages/app-staking/src/index.tsx @@ -7,6 +7,7 @@ import { ExtendedBalanceMap } from '@polkadot/ui-react-rx/types'; import React from 'react'; import storage from '@polkadot/storage'; +import Page from '@polkadot/ui-app/Page'; import encodeAddress from '@polkadot/util-keyring/address/encode'; import classes from '@polkadot/ui-app/util/classes'; import withApiObservable from '@polkadot/ui-react-rx/with/apiObservable'; @@ -32,7 +33,7 @@ class App extends React.PureComponent { const { balances = {}, className, intentions = [], style, validators = [] } = this.props; return ( -
@@ -46,7 +47,7 @@ class App extends React.PureComponent { intentions={intentions} validators={validators} /> -
+ ); } } diff --git a/packages/app-storage/src/index.css b/packages/app-storage/src/index.css index 8377dd7cb1..cbd4452ea1 100644 --- a/packages/app-storage/src/index.css +++ b/packages/app-storage/src/index.css @@ -2,10 +2,6 @@ /* This software may be modified and distributed under the terms /* of the ISC license. See the LICENSE file for details. */ -.storage--App { - padding: 1em 2em; -} - .storage--Queries { margin-top: 2em; } diff --git a/packages/app-storage/src/index.tsx b/packages/app-storage/src/index.tsx index 2b7d9217b2..9505d08bfa 100644 --- a/packages/app-storage/src/index.tsx +++ b/packages/app-storage/src/index.tsx @@ -8,7 +8,7 @@ import { StorageQuery } from './types'; import './index.css'; import React from 'react'; - +import Page from '@polkadot/ui-app/Page'; import classes from '@polkadot/ui-app/util/classes'; import Queries from './Queries'; @@ -31,7 +31,7 @@ class StorageApp extends React.PureComponent { const { queue } = this.state; return ( -
@@ -40,7 +40,7 @@ class StorageApp extends React.PureComponent { onRemove={this.onRemove} value={queue} /> -
+ ); } diff --git a/packages/app-toolbox/src/index.tsx b/packages/app-toolbox/src/index.tsx index bac98f8882..14a3eed200 100644 --- a/packages/app-toolbox/src/index.tsx +++ b/packages/app-toolbox/src/index.tsx @@ -7,8 +7,9 @@ import { I18nProps } from '@polkadot/ui-app/types'; import './index.css'; import React from 'react'; - import Button from '@polkadot/ui-app/Button'; +import Navigation from '@polkadot/ui-app/Navigation'; +import Page from '@polkadot/ui-app/Page'; import classes from '@polkadot/ui-app/util/classes'; import Hash from './Hash'; @@ -42,13 +43,13 @@ class ToolboxApp extends React.PureComponent { const Component = Components[action]; return ( -
{this.renderButtons()} -
+ ); } @@ -57,31 +58,33 @@ class ToolboxApp extends React.PureComponent { const { action } = this.state; return ( - -