11import React , { Component } from 'react' ;
22import { connect } from 'react-redux' ;
33import { Dispatch } from 'redux' ;
4- import { ActionType } from 'typesafe-actions/dist/types ' ;
4+ import { ActionType } from 'typesafe-actions' ;
55import { types , constants } from '@polymathnetwork/new-shared' ;
66import { Page } from '@polymathnetwork/new-ui' ;
77import { Presenter } from './Presenter' ;
88import { DataFetcher } from '~/components/enhancers/DataFetcher' ;
99import {
10- createTaxWithholdingListBySymbolFetcher ,
10+ createTaxWithholdingListBySymbolAndCheckpointFetcher ,
1111 createDividendBySymbolAndIdFetcher ,
1212} from '~/state/fetchers' ;
1313import { RootState } from '~/state/store' ;
14- import { getSession , getApp } from '~/state/selectors' ;
14+ import { getApp } from '~/state/selectors' ;
1515import {
1616 pushDividendPaymentStart ,
1717 withdrawDividendTaxesStart ,
@@ -27,6 +27,7 @@ export interface Props {
2727 dispatch : Dispatch < ActionType < typeof actions > > ;
2828 securityTokenSymbol : string ;
2929 dividendIndex : string ;
30+ checkpointIndex : string ;
3031 networkId ?: number ;
3132}
3233
@@ -60,14 +61,20 @@ export class ContainerBase extends Component<Props> {
6061 } ;
6162
6263 public render ( ) {
63- const { securityTokenSymbol, dividendIndex, networkId } = this . props ;
64+ const {
65+ securityTokenSymbol,
66+ dividendIndex,
67+ checkpointIndex,
68+ networkId,
69+ } = this . props ;
6470 const subdomain = networkId ? constants . EtherscanSubdomains [ networkId ] : '' ;
6571 return (
6672 < Page title = "Dividend Details" >
6773 < DataFetcher
6874 fetchers = { [
69- createTaxWithholdingListBySymbolFetcher ( {
75+ createTaxWithholdingListBySymbolAndCheckpointFetcher ( {
7076 securityTokenSymbol,
77+ checkpointIndex : parseInt ( checkpointIndex , 10 ) ,
7178 dividendType : DividendModuleTypes . Erc20 ,
7279 } ) ,
7380 createDividendBySymbolAndIdFetcher ( {
0 commit comments