7
7
BIG_BREAKPOINT ,
8
8
LARGE_BREAKPOINT ,
9
9
} from "../../../../constants/BreakPoints" ;
10
- import TimeCountDown from "./components/TimeCountdown" ;
11
10
import { useWindowSize } from "react-use" ;
12
11
import {
13
12
StyledBlueSlash ,
@@ -27,6 +26,8 @@ import styled from "styled-components";
27
26
import { Color } from "../../../../styles/colors" ;
28
27
import InfoButtons from "../InfoButtons/InfoButtons" ;
29
28
import MultimediaInfoButtons from "../MultimediaInfoButtons/MultimediaInfoButtons" ;
29
+ import CountDownCompleted from "../../../../views/Home/components/Home/components/CountDownCompleted" ;
30
+ import TimeCountDown from "../../../../views/Home/components/Home/components/TimeCountdown" ;
30
31
31
32
const StyledLogo = styled . img `
32
33
margin: 20px;
@@ -77,7 +78,11 @@ const Home: FC<React.PropsWithChildren<unknown>> = () => {
77
78
</ StyledSubtitle >
78
79
</ StyledTitleContainer >
79
80
{ data . showCountdown && (
80
- < Countdown date = { startDay } renderer = { TimeCountDown } />
81
+ < Countdown
82
+ date = { startDay }
83
+ onComplete = { CountDownCompleted }
84
+ renderer = { TimeCountDown }
85
+ />
81
86
) }
82
87
{ data . actionButtons && < ActionButtons /> }
83
88
{ data . showInfoButtons && < InfoButtons /> }
@@ -93,7 +98,8 @@ const Home: FC<React.PropsWithChildren<unknown>> = () => {
93
98
>
94
99
< StyledGreenSlash >
95
100
/ / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / /
96
- / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / /{ " " }
101
+ / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / /
102
+ /{ " " }
97
103
</ StyledGreenSlash >
98
104
</ StyledTopSlash >
99
105
< StyledBottomSlash
@@ -103,7 +109,8 @@ const Home: FC<React.PropsWithChildren<unknown>> = () => {
103
109
>
104
110
< StyledBlueSlash >
105
111
/ / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / /
106
- / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / /{ " " }
112
+ / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / /
113
+ /{ " " }
107
114
</ StyledBlueSlash >
108
115
</ StyledBottomSlash >
109
116
</ StyleHomeContainer >
0 commit comments