diff --git a/src/components/AccountSummary/AccountSummary.feeTierVolume.js b/src/components/AccountSummary/AccountSummary.feeTierVolume.js index 7cf69e53ea..2cc71061fc 100644 --- a/src/components/AccountSummary/AccountSummary.feeTierVolume.js +++ b/src/components/AccountSummary/AccountSummary.feeTierVolume.js @@ -25,7 +25,9 @@ const AccountSummaryFeeTierVolume = ({ data, t }) => { AccountSummaryFeeTierVolume.propTypes = { t: PropTypes.func.isRequired, - data: PropTypes.arrayOf(PropTypes.object).isRequired, + data: PropTypes.arrayOf(PropTypes.shape({ + curr: PropTypes.string, + })).isRequired, } export default memo(AccountSummaryFeeTierVolume) diff --git a/src/components/AccountSummary/AccountSummary.js b/src/components/AccountSummary/AccountSummary.js index 96410bc0f9..ba2bc9ca5d 100644 --- a/src/components/AccountSummary/AccountSummary.js +++ b/src/components/AccountSummary/AccountSummary.js @@ -36,7 +36,9 @@ class AccountSummary extends PureComponent { takerFeeToCrypto: PropTypes.number, takerFeeToFiat: PropTypes.number, takerFeeToStable: PropTypes.number, - trade_vol_30d: PropTypes.arrayOf(PropTypes.object), + trade_vol_30d: PropTypes.arrayOf(PropTypes.shape({ + curr: PropTypes.string, + })), }), dataReceived: PropTypes.bool.isRequired, fetchData: PropTypes.func.isRequired, diff --git a/src/components/Auth/Auth.js b/src/components/Auth/Auth.js index 69f223d2f1..62a0cf81f1 100644 --- a/src/components/Auth/Auth.js +++ b/src/components/Auth/Auth.js @@ -34,7 +34,9 @@ class Auth extends PureComponent { isUsersLoaded: PropTypes.bool, t: PropTypes.func.isRequired, usersLoading: PropTypes.bool, - users: PropTypes.arrayOf(PropTypes.object).isRequired, + users: PropTypes.arrayOf(PropTypes.shape({ + email: PropTypes.string, + })).isRequired, } static defaultProps = { diff --git a/src/components/Candles/Candles.js b/src/components/Candles/Candles.js index f7e84b4ed1..ec858ae3d7 100644 --- a/src/components/Candles/Candles.js +++ b/src/components/Candles/Candles.js @@ -29,7 +29,9 @@ const TYPE = queryConstants.MENU_CANDLES class Candles extends PureComponent { static propTypes = { candles: PropTypes.shape({ - entries: PropTypes.arrayOf(PropTypes.object), + entries: PropTypes.arrayOf(PropTypes.shape({ + time: PropTypes.number, + })), isLoading: PropTypes.bool, nextPage: PropTypes.oneOfType([PropTypes.bool, PropTypes.number]), }), @@ -49,7 +51,9 @@ class Candles extends PureComponent { t: PropTypes.func.isRequired, toggleGoToRangeDialog: PropTypes.func.isRequired, trades: PropTypes.shape({ - entries: PropTypes.arrayOf(PropTypes.object), + entries: PropTypes.arrayOf(PropTypes.shape({ + id: PropTypes.number, + })), isLoading: PropTypes.bool, nextPage: PropTypes.oneOfType([PropTypes.bool, PropTypes.number]), }), diff --git a/src/components/Derivatives/Derivatives.js b/src/components/Derivatives/Derivatives.js index af386c8351..2277b3e472 100644 --- a/src/components/Derivatives/Derivatives.js +++ b/src/components/Derivatives/Derivatives.js @@ -48,7 +48,9 @@ class Derivatives extends PureComponent { width: PropTypes.number, })), dataReceived: PropTypes.bool.isRequired, - entries: PropTypes.arrayOf(PropTypes.object), + entries: PropTypes.arrayOf(PropTypes.shape({ + pair: PropTypes.string, + })), existingPairs: PropTypes.arrayOf(PropTypes.string), getFullTime: PropTypes.func.isRequired, inactivePairs: PropTypes.arrayOf(PropTypes.string), diff --git a/src/components/Invoices/Invoices.js b/src/components/Invoices/Invoices.js index 70f0e814c6..36940aad56 100644 --- a/src/components/Invoices/Invoices.js +++ b/src/components/Invoices/Invoices.js @@ -61,7 +61,9 @@ class Invoices extends PureComponent { orderId: PropTypes.string.isRequired, payCurrencies: PropTypes.arrayOf(PropTypes.string).isRequired, status: PropTypes.string.isRequired, - invoices: PropTypes.arrayOf(PropTypes.object).isRequired, + invoices: PropTypes.arrayOf(PropTypes.shape({ + currency: PropTypes.string, + })).isRequired, duration: PropTypes.number.isRequired, merchantName: PropTypes.string.isRequired, redirectUrl: PropTypes.string.isRequired, diff --git a/src/components/SubAccounts/SubAccount/SubAccountRemove/SubAccountRemove.js b/src/components/SubAccounts/SubAccount/SubAccountRemove/SubAccountRemove.js index df6d609f06..6d6465be50 100644 --- a/src/components/SubAccounts/SubAccount/SubAccountRemove/SubAccountRemove.js +++ b/src/components/SubAccounts/SubAccount/SubAccountRemove/SubAccountRemove.js @@ -29,7 +29,9 @@ SubAccountRemove.propTypes = { t: PropTypes.func.isRequired, masterAccount: PropTypes.string, removeSubAccount: PropTypes.func.isRequired, - subUsers: PropTypes.arrayOf(PropTypes.object), + subUsers: PropTypes.arrayOf(PropTypes.shape({ + email: PropTypes.string, + })), } SubAccountRemove.defaultProps = { subUsers: [], diff --git a/src/components/WeightedAverages/WeightedAverages.js b/src/components/WeightedAverages/WeightedAverages.js index 5fd674ef5d..271b312535 100644 --- a/src/components/WeightedAverages/WeightedAverages.js +++ b/src/components/WeightedAverages/WeightedAverages.js @@ -49,7 +49,9 @@ class WeightedAverages extends PureComponent { width: PropTypes.number, })), dataReceived: PropTypes.bool.isRequired, - entries: PropTypes.arrayOf(PropTypes.object), + entries: PropTypes.arrayOf(PropTypes.shape({ + pair: PropTypes.string, + })), existingPairs: PropTypes.arrayOf(PropTypes.string), inactivePairs: PropTypes.arrayOf(PropTypes.string), nextPage: PropTypes.oneOfType([ diff --git a/src/ui/Charts/Candlestick/CandleStats/CandleStats.js b/src/ui/Charts/Candlestick/CandleStats/CandleStats.js index 2c1a17cece..14d79bb9db 100644 --- a/src/ui/Charts/Candlestick/CandleStats/CandleStats.js +++ b/src/ui/Charts/Candlestick/CandleStats/CandleStats.js @@ -4,8 +4,12 @@ import _throttle from 'lodash/throttle' class CandleStats extends React.PureComponent { static propTypes = { - chart: PropTypes.objectOf(PropTypes.object), - candleSeries: PropTypes.objectOf(PropTypes.object), + chart: PropTypes.objectOf(PropTypes.shape({ + ve: PropTypes.string, + })), + candleSeries: PropTypes.objectOf(PropTypes.shape({ + _series: PropTypes.string, + })), defaultCandle: PropTypes.objectOf(PropTypes.number), } diff --git a/src/ui/Charts/Candlestick/Tooltip/Tooltip.js b/src/ui/Charts/Candlestick/Tooltip/Tooltip.js index cefdc22a74..b48479d694 100644 --- a/src/ui/Charts/Candlestick/Tooltip/Tooltip.js +++ b/src/ui/Charts/Candlestick/Tooltip/Tooltip.js @@ -11,10 +11,14 @@ const tooltipMargin = 15 class Tooltip extends React.PureComponent { static propTypes = { - chart: PropTypes.objectOf(PropTypes.object), + chart: PropTypes.objectOf(PropTypes.shape({ + ve: PropTypes.string, + })), width: PropTypes.number.isRequired, height: PropTypes.number.isRequired, - tradeSeries: PropTypes.objectOf(PropTypes.object), + tradeSeries: PropTypes.objectOf(PropTypes.shape({ + _series: PropTypes.string, + })), t: PropTypes.func.isRequired, } @@ -133,7 +137,6 @@ class Tooltip extends React.PureComponent { render() { const { trade } = this.state - return (