ghost-portal/packages/app-extrinsics/src/index.js
Jaco Greeff 397dd0c983
Update jsonrpc dependency tree (#54)
* Use tyopeToString from @polkadot/params

* Upgrades... before checks

* Cleanups... WIP.

* more WIP.

* Expand defaultValue & handlers

* Cleanups

* CodeClimate cleanups

* Additional CodeClimate cleanups

* Base for app-rpc

* Initial split into ui-signer

* Signer operational (extrinsics)

* Decode extrinsic method

* RPC progress...

* RPC class works again

* @flow cleanups
2018-05-23 18:01:42 +02:00

34 lines
860 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 type { QueueProps } from '@polkadot/ui-signer/types';
import './index.css';
import React from 'react';
import classes from '@polkadot/ui-app/util/classes';
import Signer from '@polkadot/ui-signer';
import Selection from './Selection';
type Props = BareProps;
export default function ExtrinsicsApp ({ className, style }: Props): React$Node {
return (
<div
className={classes('extrinsics--App', className)}
style={style}
>
<Signer.Queue.Consumer>
{({ queueAdd }: QueueProps = {}) => (
<Selection queueAdd={queueAdd} />
)}
</Signer.Queue.Consumer>
</div>
);
}