move nullable PropType helper

This commit is contained in:
Jannis R
2016-11-17 14:29:32 +01:00
parent 179078d31a
commit 4ae58f7d33
6 changed files with 26 additions and 12 deletions

View File

@@ -15,6 +15,7 @@
// along with Parity. If not, see <http://www.gnu.org/licenses/>.
import React, { Component, PropTypes } from 'react';
import nullable from '../../../util/nullable-proptype';
import BigNumber from 'bignumber.js';
import { Checkbox } from 'material-ui';
import InfoIcon from 'material-ui/svg-icons/action/info-outline';
@@ -27,8 +28,6 @@ import { Form, Input } from '../../../ui';
import terms from '../terms-of-service';
import styles from './gatherData.css';
const nullable = (type) => PropTypes.oneOfType([ PropTypes.oneOf([ null ]), type ]);
export default class GatherData extends Component {
static propTypes = {
fee: React.PropTypes.instanceOf(BigNumber),

View File

@@ -15,6 +15,7 @@
// along with Parity. If not, see <http://www.gnu.org/licenses/>.
import React, { Component, PropTypes } from 'react';
import nullable from '../../../util/nullable-proptype';
import TxHash from '../../../ui/TxHash';
import {
@@ -23,9 +24,6 @@ import {
import styles from './sendConfirmation.css';
// TODO: move this to a better place
const nullable = (type) => PropTypes.oneOfType([ PropTypes.oneOf([ null ]), type ]);
export default class SendConfirmation extends Component {
static propTypes = {
step: PropTypes.any.isRequired,

View File

@@ -15,6 +15,7 @@
// along with Parity. If not, see <http://www.gnu.org/licenses/>.
import React, { Component, PropTypes } from 'react';
import nullable from '../../../util/nullable-proptype';
import TxHash from '../../../ui/TxHash';
import {
@@ -23,9 +24,6 @@ import {
import styles from './sendRequest.css';
// TODO: move this to a better place
const nullable = (type) => PropTypes.oneOfType([ PropTypes.oneOf([ null ]), type ]);
export default class SendRequest extends Component {
static propTypes = {
step: PropTypes.any.isRequired,