Skip to content

Commit

Permalink
[DDW-647] Enhance prop type checking
Browse files Browse the repository at this point in the history
  • Loading branch information
topseniors committed May 24, 2019
1 parent a705741 commit 8cb3ca2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const messages = defineMessages({
const TIME_LEFT_INTERVAL = 1 * 1000; // 1 second | unit: milliseconds;

type Props = {
redirectToStakingInfo?: any,
redirectToStakingInfo?: Function,
currentLocale: string,
startDateTime: string,
};
Expand All @@ -46,7 +46,7 @@ export default class DelegationCountdownInfo extends Component<Props, State> {
intl: intlShape.isRequired,
};

intervalHandler = null;
intervalHandler: ?IntervalID = null;
state = { timeLeft: 0 };

componentDidMount() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import DelegationCountdownInfo from './DelegationCountdownInfo';
import styles from './StakingDelegationCountdown.scss';

type Props = {
redirectToStakingInfo?: any,
redirectToStakingInfo?: Function,
currentLocale: string,
startDateTime: string,
};
Expand Down

0 comments on commit 8cb3ca2

Please sign in to comment.