diff --git a/src/actions/dashboard/index.js b/src/actions/dashboard/index.js index 450b7c078..32fbc6e45 100644 --- a/src/actions/dashboard/index.js +++ b/src/actions/dashboard/index.js @@ -2,21 +2,17 @@ import {getBlockAction} from "../../actions/blocks"; import {getTransactionsAction} from "../../actions/transactions"; import {getAccountCurrenciesAction} from "../../actions/currencies"; import { - getDGSGoodsCountAction, - getDGSPurchaseCountAction, getDGSPurchasesAction, getDGSGoodsAction, getDGSPendingPurchases } from "../../actions/marketplace"; -import {getAccountAssetsAction, getAssetAction, getSpecificAccountAssetsAction} from '../../actions/assets' +import {getAccountAssetsAction, getAssetAction} from '../../actions/assets' import {getAliasesCountAction} from '../../actions/aliases' import {getMessages} from "../../actions/messager"; -// import {BlockUpdater} from "../../block-subscriber/index"; import {getAllTaggedDataAction} from "../../actions/datastorage"; import {getActiveShfflings, getShufflingAction} from "../../actions/shuffling"; import {getpollsAction} from "../../actions/polls"; import {getAccountInfoAction} from "../../actions/account"; -import {LOAD_ACCOUNT} from "../../modules/account"; export const getDashboardData = () => (dispatch, getState, subscribe) => { diff --git a/src/actions/generators/generator/index.js b/src/actions/generators/generator/index.js index 2ad4878e0..1d6d185b7 100644 --- a/src/actions/generators/generator/index.js +++ b/src/actions/generators/generator/index.js @@ -3,62 +3,72 @@ * * ******************************************************************************/ +import React from "react"; +import { connect } from "react-redux"; +import { v4 as uuidv4 } from "uuid"; +import { setBodyModalParamsAction } from "../../../modules/modals"; +import { formatTimestamp } from "../../../helpers/util/time"; +import { toEpochTime } from "../../../helpers/util/time"; +import Button from "../../../containers/components/button"; -import React from 'react'; -import {connect} from 'react-redux'; -import { v4 as uuidv4 } from 'uuid'; -import {setBodyModalParamsAction} from "../../../modules/modals"; -import {formatTimestamp} from "../../../helpers/util/time"; -import {toEpochTime} from "../../../helpers/util/time" - -const mapDispatchToProps = dispatch => ({ - formatTimestamp: (timestamp, date_only, isAbsoluteTime) => dispatch(formatTimestamp(timestamp, date_only, isAbsoluteTime)), - setBodyModalParamsAction: (type, data, valueForModal) => dispatch(setBodyModalParamsAction(type, data, valueForModal)), +const mapDispatchToProps = (dispatch) => ({ + formatTimestamp: (timestamp, date_only, isAbsoluteTime) => + dispatch(formatTimestamp(timestamp, date_only, isAbsoluteTime)), + setBodyModalParamsAction: (type, data, valueForModal) => + dispatch(setBodyModalParamsAction(type, data, valueForModal)), }); class Generator extends React.Component { - state = { - remaining: 0 - }; + state = { + remaining: 0, + }; - initTimer = () => { - const remaining = this.props.deadline - (toEpochTime(undefined, this.props.epochB) - this.props.resTimestamps) + 20; - this.setState({ - remaining - }); - }; + initTimer = () => { + const remaining = + this.props.deadline - + (toEpochTime(undefined, this.props.epochB) - this.props.resTimestamps) + + 20; + this.setState({ + remaining, + }); + }; - timer = {}; + timer = {}; - componentDidMount() { - this.timer = setInterval(this.initTimer, 1000); - } + componentDidMount() { + this.timer = setInterval(this.initTimer, 1000); + } - componentWillUnmount() { - clearInterval(this.timer); - } + componentWillUnmount() { + clearInterval(this.timer); + } - render() { - const {setBodyModalParamsAction, account, accountRS, effectiveBalanceAPL, hitTime, deadline} = this.props; - return ( -
{formatTimestamp(timestamp)}
@@ -58,8 +58,12 @@ class Block extends React.Component {{payloadLength} B
diff --git a/src/containers/account/currency-block/currency-exchange-history/index.jsx b/src/containers/account/currency-block/currency-exchange-history/index.jsx index 7e47e793b..64dc49c43 100644 --- a/src/containers/account/currency-block/currency-exchange-history/index.jsx +++ b/src/containers/account/currency-block/currency-exchange-history/index.jsx @@ -33,7 +33,7 @@ export default function TradeHistoryCurrency() { if (exchanges) { setExecutedExchanges(exchanges.exchanges); } - }, [dispatch]); + }, [dispatch, accountRS]); const onPaginate = useCallback(page => { const reqParams = { diff --git a/src/containers/account/datastorage/datastorage-item/index.js b/src/containers/account/datastorage/datastorage-item/index.js index 91bde9646..1aad476ae 100644 --- a/src/containers/account/datastorage/datastorage-item/index.js +++ b/src/containers/account/datastorage/datastorage-item/index.js @@ -8,6 +8,7 @@ import React from 'react'; import {connect} from 'react-redux'; import {setBodyModalParamsAction} from "../../../../modules/modals"; import config from '../../../../config'; +import Button from "../../../components/button"; const mapDispatchToProps = dispatch => ({ setBodyModalParamsAction: (type, data, valueForModal) => dispatch(setBodyModalParamsAction(type, data, valueForModal)), @@ -15,13 +16,19 @@ const mapDispatchToProps = dispatch => ({ const DataStorageItem = props => (Incorrect "adminPassword" (locked for 1 hour, too many incorrect password*/} - {/*attempts)
*/} - {/*| Date | +Type | +Amount | +Fee | +Account | +Height | +Actions | +
| Date | -Type | -Amount | -Fee | -Account | -Height | -Actions | -
Current account