ghost-portal/packages/ui-app/src/Params/Param/Hash.js
Jaco Greeff 004824dbec
Be explicit in State returns (#58)
* Be explicit in State returns

* Cleanup Param properties

* Cleanup casting

* Cleanup type manipulations

* Don't allow null for InputAddress defaultValue
2018-05-25 17:57:51 +02:00

29 lines
721 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 Hash ({ 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={32}
name={name}
onChange={onChange}
size='medium'
style={style}
withLabel={withLabel}
/>
);
}