Skip to content

Commit

Permalink
feat(types): export CountdownProps
Browse files Browse the repository at this point in the history
  • Loading branch information
wangcch committed Jan 3, 2023
1 parent fb4ae8f commit 9bdf478
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/statistic/Countdown.tsx
Expand Up @@ -8,7 +8,7 @@ import { formatCountdown } from './utils';

const REFRESH_INTERVAL = 1000 / 30;

interface CountdownProps extends StatisticProps {
export interface CountdownProps extends StatisticProps {
value?: countdownValueType;
format?: string;
onFinish?: () => void;
Expand All @@ -19,7 +19,7 @@ function getTime(value?: countdownValueType) {
return new Date(value as valueType).getTime();
}

const Countdown: React.FC<CountdownProps> = props => {
const Countdown: React.FC<CountdownProps> = (props) => {
const { value, format = 'HH:mm:ss', onChange, onFinish } = props;

const forceUpdate = useForceUpdate();
Expand Down

0 comments on commit 9bdf478

Please sign in to comment.