@@ -7,10 +7,8 @@ import { camelCase } from 'change-case/change-case';
77import { withStyles } from '@material-ui/core/styles' ;
88import TableRow from '@material-ui/core/TableRow' ;
99import TableCell from '@material-ui/core/TableCell' ;
10- import ListItemText from '@material-ui/core/ListItemText' ;
1110import Typography from '@material-ui/core/Typography' ;
1211import LinkIcon from 'mdi-react/LinkIcon' ;
13- import TableCellListItem from '../TableCellListItem' ;
1412import { role } from '../../utils/prop-types' ;
1513import sort from '../../utils/sort' ;
1614import DataTable from '../DataTable' ;
@@ -20,11 +18,18 @@ const sorted = pipe(
2018 map ( ( { roleId } ) => roleId )
2119) ;
2220
23- @withStyles ( {
21+ @withStyles ( theme => ( {
22+ tableCell : {
23+ textDecoration : 'none' ,
24+ } ,
2425 listItemCell : {
26+ display : 'flex' ,
27+ justifyContent : 'space-between' ,
2528 width : '100%' ,
29+ padding : theme . spacing . unit ,
30+ ...theme . mixins . hover ,
2631 } ,
27- } )
32+ } ) )
2833export default class RolesTable extends Component {
2934 static defaultProps = {
3035 searchTerm : null ,
@@ -99,20 +104,16 @@ export default class RolesTable extends Component {
99104 onHeaderClick = { this . handleHeaderClick }
100105 renderRow = { ( { roleId } ) => (
101106 < TableRow key = { roleId } >
102- < TableCell >
103- < TableCellListItem
104- className = { classes . listItemCell }
105- dense
106- button
107- component = { Link }
107+ < TableCell padding = "dense" >
108+ < Link
109+ className = { classes . tableCell }
108110 to = { `/auth/roles/${ encodeURIComponent ( roleId ) } ` }
109111 >
110- < ListItemText
111- disableTypography
112- primary = { < Typography > { roleId } </ Typography > }
113- />
114- < LinkIcon size = { iconSize } />
115- </ TableCellListItem >
112+ < div className = { classes . listItemCell } >
113+ < Typography > { roleId } </ Typography >
114+ < LinkIcon size = { iconSize } />
115+ </ div >
116+ </ Link >
116117 </ TableCell >
117118 </ TableRow >
118119 ) }
0 commit comments