From 72a5515167b1234204e77b5ebc5431da91407bf6 Mon Sep 17 00:00:00 2001 From: Sander Vocke Date: Tue, 15 Sep 2020 17:04:51 +0200 Subject: [PATCH] Buttony rows in table. --- client/src/components/tables/ResultsTable.tsx | 44 +++++++++++++++---- 1 file changed, 36 insertions(+), 8 deletions(-) diff --git a/client/src/components/tables/ResultsTable.tsx b/client/src/components/tables/ResultsTable.tsx index 001e97e..4e41e5d 100644 --- a/client/src/components/tables/ResultsTable.tsx +++ b/client/src/components/tables/ResultsTable.tsx @@ -1,5 +1,5 @@ import React from 'react'; -import { TableContainer, Table, TableHead, TableRow, TableCell, Paper, makeStyles, TableBody, Chip } from '@material-ui/core'; +import { TableContainer, Table, TableHead, TableRow, TableCell, Paper, makeStyles, TableBody, Chip, Box, Button } from '@material-ui/core'; import stringifyList from '../../lib/stringifyList'; export interface SongGetters { @@ -39,16 +39,44 @@ export function SongTable(props: IProps) { const artist = props.songGetters.getArtist(song); const album = props.songGetters.getAlbum(song); const tags = props.songGetters.getTags(song).map((tag: string[]) => { - return { - return (idx === 0) ? e : " / " + e; - })} /> + return + { + return (idx === 0) ? e : " / " + e; + })} /> + }); + const TextCell = (props: any) => { + const classes = makeStyles({ + button: { + textTransform: "none", + fontWeight: 400, + paddingLeft: '0', + } + })(); + return + + ; + } + return - {title} - {artist} - {album} - {tags} + {title} + {artist} + {album} + + + {tags} + + })}