ghost-portal/packages/ui-keyring/src/options/KeyPair.js
Jaco Greeff 6006749297
Split UI-specific keyring into own package (#36)
* Swap to using split-out ui-keyring

* First part of split into ui-keyring complete

* Create/Edit account operational

* Cleanup keyring display

* InputAddress defaultValue
2018-05-10 09:52:49 +02:00

40 lines
855 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 './KeyPair.css';
import React from 'react';
import IdentityIcon from '@polkadot/ui-react/IdentityIcon';
type Props = {
address: string,
className?: string,
name: string,
style?: {
[string]: string
}
};
export default function KeyPair ({ address, className, name, style }: Props): React$Node {
return (
<div
className={['ui--KeyPair', className].join(' ')}
style={style}
>
<IdentityIcon
className='ui--KeyPair-icon'
size={32}
value={address}
/>
<div className='ui--KeyPair-name'>
{name}
</div>
<div className='ui--KeyPair-address'>
{address}
</div>
</div>
);
}