* 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
28 lines
675 B
JavaScript
28 lines
675 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 './CallDisplay.css';
|
|
|
|
import React from 'react';
|
|
|
|
import translate from '../translate';
|
|
|
|
function ErrorDisplay ({ className, style, t }: BaseProps): React$Node {
|
|
return (
|
|
<div
|
|
className={['extrinsics--CallDisplay-error', className].join(' ')}
|
|
style={style}
|
|
>
|
|
{t('calldisplay.error', {
|
|
defaultValue: 'ERROR: Invalid or unimplemented extrinsic function'
|
|
})}
|
|
</div>
|
|
);
|
|
}
|
|
|
|
export default translate(ErrorDisplay);
|