@@ -8,12 +8,40 @@ import TableCell from "@material-ui/core/TableCell"
8
8
import TableHead from "@material-ui/core/TableHead"
9
9
import TableRow from "@material-ui/core/TableRow"
10
10
import Fab from "@material-ui/core/Fab"
11
- import AddIcon from "@material-ui/icons/Add"
12
11
import AssignmentIndIcon from "@material-ui/icons/AssignmentInd"
13
12
import { observer } from "mobx-react-lite"
14
13
import { Link } from "react-router-dom"
14
+ import BottomNavigation from "@material-ui/core/BottomNavigation"
15
+ import PersonAddIcon from "@material-ui/icons/PersonAdd"
16
+ import { makeStyles } from "@material-ui/core/styles"
17
+ import Grid from "@material-ui/core/Grid"
15
18
16
19
const ParticipantsList = observer ( ( ) => {
20
+ const useStyles = makeStyles ( {
21
+ addParticipantNav : {
22
+ width : "100%" ,
23
+ position : "fixed" ,
24
+ bottom : 0 ,
25
+ left : 0 ,
26
+ right : 0 ,
27
+ backgroundColor : "#d4d4d4" ,
28
+ height : "auto" ,
29
+ } ,
30
+ addParticipant : {
31
+ float : "right" ,
32
+ } ,
33
+ addParticipantText : {
34
+ float : "left" ,
35
+ color : "primary" ,
36
+ fontWeight : "bold" ,
37
+ marginRight : "1em" ,
38
+ display : "inline-block" ,
39
+ verticalAlign : "middle" ,
40
+ lineHeight : "normal" ,
41
+ } ,
42
+ } )
43
+ const classes = useStyles ( )
44
+
17
45
const rootStore = useContext ( rootStoreContext )
18
46
const participantsStore = rootStore . ParticipantStore
19
47
const [ isLoading , setIsLoading ] = useState ( false )
@@ -49,9 +77,6 @@ const ParticipantsList = observer(() => {
49
77
< Table >
50
78
< TableHead >
51
79
< TableRow >
52
- < TableCell >
53
- < Typography > #</ Typography >
54
- </ TableCell >
55
80
< TableCell >
56
81
< Typography > PPID</ Typography >
57
82
</ TableCell >
@@ -71,7 +96,7 @@ const ParticipantsList = observer(() => {
71
96
< Typography > Race</ Typography >
72
97
</ TableCell >
73
98
< TableCell >
74
- < Typography > Edit Participant Info </ Typography >
99
+ < Typography > Edit Participant</ Typography >
75
100
</ TableCell >
76
101
</ TableRow >
77
102
</ TableHead >
@@ -81,9 +106,6 @@ const ParticipantsList = observer(() => {
81
106
key = { index }
82
107
onClick = { e => handleParticipant ( e , participant ) }
83
108
>
84
- < TableCell >
85
- < Typography > Number</ Typography >
86
- </ TableCell >
87
109
< TableCell >
88
110
< Typography > { participant . pp_id } </ Typography >
89
111
</ TableCell >
@@ -114,9 +136,21 @@ const ParticipantsList = observer(() => {
114
136
</ TableBody >
115
137
</ Table >
116
138
</ div >
117
- < Fab color = "primary" aria-label = "add" size = "large" >
118
- < AddIcon />
119
- </ Fab >
139
+ < BottomNavigation showLabels className = { classes . addParticipantNav } >
140
+ < Link to = "/participantInfo" >
141
+ < Grid container >
142
+ < Grid container item justify = "flex-end" >
143
+ < Typography
144
+ color = "primary"
145
+ style = { { fontSize : 28 , paddingRight : "0.75em" } }
146
+ >
147
+ Add Participant
148
+ </ Typography >
149
+ < PersonAddIcon color = "primary" style = { { fontSize : 50 } } />
150
+ </ Grid >
151
+ </ Grid >
152
+ </ Link >
153
+ </ BottomNavigation >
120
154
</ div >
121
155
) }
122
156
</ Fragment >
0 commit comments