Skip to content

Commit

Permalink
chore: give getlabels function, expiry_time and start_time proper types
Browse files Browse the repository at this point in the history
  • Loading branch information
jim-deriv committed Jan 5, 2023
1 parent 602af27 commit 56babaf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ import { TGetCardLables } from '../types';
type TProgressSliderMobileProps = {
className?: string;
current_tick: number;
expiry_time: number & string;
expiry_time: number;
is_loading: boolean;
server_time: moment.Moment;
start_time: number & string;
start_time: number;
ticks_count: number;
getCardLabels: TGetCardLables;
};
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import React from 'react';
import TickProgress from '../tick-progress';
import Text from '../text';
import { TGetCardLables } from '../types';

type TProgressTicksMobileProps = {
current_tick: number;
ticks_count: number;
getCardLabels: () => { [key: string]: string }; // TODO Use the one from shared workspace after migration
getCardLabels: TGetCardLables;
};

const ProgressTicksMobile = ({ current_tick, getCardLabels, ticks_count }: TProgressTicksMobileProps) => {
Expand Down

0 comments on commit 56babaf

Please sign in to comment.