move nullable PropType helper
This commit is contained in:
@@ -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),
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user