ghost-portal/packages/app-extrinsics/src/Recipient.js
Jaco Greeff ad5cf04b07
Update rx-react/rx-api packages (16.3 compliant) (#4)
* Update rx-react/rx-api packages (16.3 compliant)

* onChange & subject is optional

* Cleanup translations

* Clean up logging

* Upgrades

* Use yarn on Travis

* install -> add

* No lerna global install

* Ignore engines

* Update dev

* Final dependency bumps

* Simplify travis.yml more
2018-04-25 16:45:14 +02:00

30 lines
718 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 { BaseProps } from './types';
import React from 'react';
import translate from './translate';
import Account from './Account';
import { recipientAddr } from './subjects';
type Props = BaseProps & {};
function Recipient (props: Props): React$Node {
return (
<Account
{...props}
className={['extrinsics--Recipient', props.className].join(' ')}
label={props.t('recipient.label', {
defaultValue: 'to the recipient'
})}
subject={recipientAddr}
/>
);
}
export default translate(Recipient);