* Fix address defaultValue/value * @flow cleanups * Remove debug info * Properly hide dev chain addresses (default) * Close https://github.com/polkadot-js/apps/issues/68 * Don't allow pre-existing accounts and addr * Failsafe on conversion check * Don't try to encode arrays * Display decoded Proposals as text
45 lines
1009 B
JavaScript
45 lines
1009 B
JavaScript
// Copyright 2017-2018 Jaco Greeff
|
|
// This software may be modified and distributed under the terms
|
|
// of the ISC license. See the LICENSE file for details.
|
|
// @flow
|
|
|
|
import type { BareProps } from '@polkadot/ui-app/types';
|
|
|
|
import './index.css';
|
|
|
|
import React from 'react';
|
|
|
|
import createApp from '@polkadot/ui-app';
|
|
import classes from '@polkadot/ui-app/util/classes';
|
|
import Signer from '@polkadot/ui-signer';
|
|
|
|
import Connecting from './Connecting';
|
|
import Content from './Content';
|
|
import NodeInfo from './NodeInfo';
|
|
import SideBar from './SideBar';
|
|
|
|
type Props = BareProps & {};
|
|
|
|
function App ({ className, style }: Props): React$Node {
|
|
return (
|
|
<div
|
|
className={classes('apps--App', className)}
|
|
style={style}
|
|
>
|
|
<SideBar>
|
|
<NodeInfo />
|
|
</SideBar>
|
|
<Signer>
|
|
<Content />
|
|
</Signer>
|
|
<Connecting />
|
|
</div>
|
|
);
|
|
}
|
|
|
|
createApp(App, {
|
|
url: process.env.WS_URL === null || process.env.WS_URL === ''
|
|
? undefined
|
|
: process.env.WS_URL
|
|
});
|