From 8874513e591389278db0d932496490f1ce48a13c Mon Sep 17 00:00:00 2001 From: Rupin Khandelwal Date: Thu, 21 Jul 2022 13:03:44 +0200 Subject: [PATCH] Some clean up around css --- packages/web/components/elements/Table.tsx | 77 +++++++++++----------- 1 file changed, 38 insertions(+), 39 deletions(-) diff --git a/packages/web/components/elements/Table.tsx b/packages/web/components/elements/Table.tsx index 0232911f3..ee7db6010 100644 --- a/packages/web/components/elements/Table.tsx +++ b/packages/web/components/elements/Table.tsx @@ -1,5 +1,12 @@ import { isDarkTheme } from '../../lib/themeUpdater' -import { Table as ResponsiveTable, Thead, Tbody, Tr, Th, Td } from 'react-super-responsive-table' +import { + Table as ResponsiveTable, + Thead, + Tbody, + Tr, + Th, + Td, +} from 'react-super-responsive-table' import { PencilSimple, Plus, Trash } from 'phosphor-react' import { Box, SpanBox, VStack } from './LayoutPrimitives' import { styled } from '../tokens/stitches.config' @@ -26,12 +33,17 @@ const HeaderWrapper = styled(Box, { }, }) -const newThead = { - background: '#156' -} - const StyledTable = styled(ResponsiveTable, { - // Add css here + margin: ' 0 auto', + border: '0.5px solid $grayBgActive', + backgroundColor: '$graySolid', + borderCollapse: 'collapse', + borderRadius:'5px', + width: '100%', + mt: '$3', + '&:hover': { + border: '0.5px solid #FFD234', + }, }) export function Table(props: TableProps): JSX.Element { @@ -94,38 +106,26 @@ export function Table(props: TableProps): JSX.Element { )} - - - - - {props.headers.map((header: string, index: number) => ( - - - {header} - - - ))} - + + + + {props.headers.map((header: string, index: number) => ( + + + {header} + + + ))} + @@ -187,7 +187,6 @@ export function Table(props: TableProps): JSX.Element { ))} - ) }