* 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
29 lines
720 B
JavaScript
29 lines
720 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 { Props } from '../types';
|
|
|
|
import React from 'react';
|
|
|
|
import BaseBytes from './BaseBytes';
|
|
|
|
export default function Bytes ({ className, defaultValue, isDisabled, isError, label, name, onChange, style, withLabel }: Props): React$Node {
|
|
return (
|
|
<BaseBytes
|
|
className={className}
|
|
defaultValue={defaultValue}
|
|
isDisabled={isDisabled}
|
|
isError={isError}
|
|
label={label}
|
|
length={-1}
|
|
name={name}
|
|
onChange={onChange}
|
|
size='full'
|
|
style={style}
|
|
withLabel={withLabel}
|
|
/>
|
|
);
|
|
}
|