11import { TableCellValue } from 'mobx-lark' ;
22import { observer } from 'mobx-react' ;
33import { FC , useContext , useState } from 'react' ;
4+ import { Countdown , TimeUnit } from 'idea-react' ;
45
56import { Agenda } from '../../../models/Hackathon' ;
67import { I18nContext } from '../../../models/Translation' ;
7- import { Countdown , TimeUnit } from '../../Base/Countdown' ;
88import styles from './AgendaCountdown.module.less' ;
99import { agendaTypeLabelOf , resolveCountdownState } from './utility' ;
1010
@@ -15,7 +15,7 @@ export interface AgendaCountdownProps {
1515 units : TimeUnit [ ] ;
1616}
1717
18- export const AgendaCountdown : FC < AgendaCountdownProps > = observer (
18+ const AgendaCountdown : FC < AgendaCountdownProps > = observer (
1919 ( { agendaItems, endTime, startTime, units } ) => {
2020 const { t } = useContext ( I18nContext ) ;
2121 const [ referenceTime , setReferenceTime ] = useState ( Date . now ( ) ) ;
@@ -38,6 +38,7 @@ export const AgendaCountdown: FC<AgendaCountdownProps> = observer(
3838
3939 < Countdown
4040 className = { styles . grid }
41+ itemClassName = { `${ styles . item } d-flex flex-column align-items-center justify-content-center` }
4142 endTime = { countdownTo }
4243 onEnd = { ( ) => setReferenceTime ( Date . now ( ) ) }
4344 units = { units }
@@ -46,3 +47,4 @@ export const AgendaCountdown: FC<AgendaCountdownProps> = observer(
4647 ) ;
4748 } ,
4849) ;
50+ export default AgendaCountdown ;
0 commit comments