@@ -6,7 +6,7 @@ import StartNewGame from "../../components/StartNewGame/StartNewGame"
6
6
import MyGames from "../../components/MyGames/MyGames"
7
7
import GameStats from "../../components/GameStats/GameStats"
8
8
import { withAuthenticationRequired } from "@auth0/auth0-react"
9
- import PullToRefresh from "react-simple-pull-to-refresh"
9
+ // import PullToRefresh from "react-simple-pull-to-refresh"
10
10
11
11
import { useAppDispatch , useAppSelector } from "../../caches/hooks"
12
12
import { getMyProfile } from "../../caches/MyProfileSlice"
@@ -40,43 +40,43 @@ const Home = () => {
40
40
} , [ ] )
41
41
42
42
return (
43
- < PullToRefresh
44
- onRefresh = { fetchData }
45
- refreshingContent = { < RefreshingData /> } >
46
- < div className = "app carpet" >
47
- < div className = "game_wrap" >
48
- < div className = "game_container" >
49
- { ! myProfile . isPlayer && ! myProfile . isAdmin ? (
50
- < CardGroup >
51
- < Card className = "p-6" >
52
- < CardHeader tag = "h2" >
53
- You are successfully logged in but don't
54
- yet have any access permissions. Please
55
- contact Daithi to get access.
56
- </ CardHeader >
57
- </ Card >
58
- </ CardGroup >
59
- ) : (
60
- < div >
61
- { myProfile . isPlayer ? (
62
- < >
63
- < MyGames />
64
- < Divider />
65
- < Divider />
66
- < Divider />
67
- < GameStats />
68
- < Divider />
69
- < Divider />
70
- < Divider />
71
- </ >
72
- ) : null }
73
- { myProfile . isAdmin ? < StartNewGame /> : null }
74
- </ div >
75
- ) }
76
- </ div >
43
+ // <PullToRefresh
44
+ // onRefresh={fetchData}
45
+ // refreshingContent={<RefreshingData />}>
46
+ < div className = "app carpet" >
47
+ < div className = "game_wrap" >
48
+ < div className = "game_container" >
49
+ { ! myProfile . isPlayer && ! myProfile . isAdmin ? (
50
+ < CardGroup >
51
+ < Card className = "p-6" >
52
+ < CardHeader tag = "h2" >
53
+ You are successfully logged in but don't yet
54
+ have any access permissions. Please contact
55
+ Daithi to get access.
56
+ </ CardHeader >
57
+ </ Card >
58
+ </ CardGroup >
59
+ ) : (
60
+ < div >
61
+ { myProfile . isPlayer ? (
62
+ < >
63
+ < MyGames />
64
+ < Divider />
65
+ < Divider />
66
+ < Divider />
67
+ < GameStats />
68
+ < Divider />
69
+ < Divider />
70
+ < Divider />
71
+ </ >
72
+ ) : null }
73
+ { myProfile . isAdmin ? < StartNewGame /> : null }
74
+ </ div >
75
+ ) }
77
76
</ div >
78
77
</ div >
79
- </ PullToRefresh >
78
+ </ div >
79
+ // </PullToRefresh>
80
80
)
81
81
}
82
82
0 commit comments