@@ -2,7 +2,7 @@ import React from "react";
22import TableRow from "@mui/material/TableRow" ;
33import TableCell from "@mui/material/TableCell" ;
44import { UserOut } from "../../openapi/v2" ;
5- import { Button } from "@mui/material" ;
5+ import { Link } from "@mui/material" ;
66import { theme } from "../../theme" ;
77import Gravatar from "react-gravatar" ;
88import PersonIcon from "@mui/icons-material/Person" ;
@@ -14,6 +14,8 @@ type GroupAndRoleSubTableEntryProps = {
1414const iconStyle = {
1515 verticalAlign : "middle" ,
1616 color : theme . palette . primary . main ,
17+ width : "20px" ,
18+ marginRight : "0.5em" ,
1719} ;
1820
1921export function GroupAndRoleSubTableEntry (
@@ -24,30 +26,38 @@ export function GroupAndRoleSubTableEntry(
2426 return (
2527 < TableRow
2628 key = { user . id }
27- sx = { { "&:last-child td, &:last-child th" : { border : 0 } } }
29+ sx = { {
30+ "&:last-child td, &:last-child th" : {
31+ border : 0 ,
32+ } ,
33+ paddingLeft : 0 ,
34+ } }
2835 >
2936 < TableCell />
30- < TableCell align = "right " >
37+ < TableCell align = "left " >
3138 { user . email ? (
3239 < Gravatar
3340 email = { user . email }
3441 rating = "g"
3542 style = { {
36- width : "32px " ,
37- height : "32px " ,
43+ width : "20px " ,
44+ height : "20px " ,
3845 borderRadius : "50%" ,
3946 verticalAlign : "middle" ,
47+ marginRight : "0.5em" ,
4048 } }
4149 />
4250 ) : (
4351 < PersonIcon sx = { iconStyle } />
4452 ) }
45- < Button >
53+ { /*TODO once personal profile page is ready link to it*/ }
54+ < Link sx = { { textDecoration : "None" } } >
4655 { user . first_name } { user . last_name }
47- </ Button >
56+ </ Link >
4857 </ TableCell >
4958 < TableCell align = "right" > { user . email } </ TableCell >
5059 < TableCell align = "right" />
60+ < TableCell align = "right" />
5161 </ TableRow >
5262 ) ;
5363}
0 commit comments