-
Notifications
You must be signed in to change notification settings - Fork 1
/
WaitingPage.tsx
41 lines (37 loc) · 1.12 KB
/
WaitingPage.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
import React, {useEffect} from 'react';
import {
IonButton, IonButtons,
IonContent, IonDatetime,
IonHeader, IonIcon,
IonPage,
IonTitle,
IonToolbar,
} from '@ionic/react';
import {RouteComponentProps} from "react-router";
const WaitingPage: React.FC<RouteComponentProps> = (props, context) => {
useEffect(() => {
setTimeout(() => {
props.history.push('/icebreaker');
}, 10000)
}, []);
return (
<IonPage>
<IonHeader>
<IonToolbar>
<IonTitle className={'center-title'}>Waiting for match...</IonTitle>
</IonToolbar>
</IonHeader>
<IonContent>
<div className={"container"} >
<div className={"image-container"}>
<img alt={"two people meeting"} src={"/waiting.gif"} />
</div>
<div className={"content-container"}>
<span>Test</span>
</div>
</div>
</IonContent>
</IonPage>
);
};
export default WaitingPage;