diff --git a/src/components/UI/DataTable.tsx b/src/components/UI/DataTable.tsx new file mode 100644 index 0000000000..f186b50afa --- /dev/null +++ b/src/components/UI/DataTable.tsx @@ -0,0 +1,49 @@ +import { + Table, + Thead, + Tr, + Th, + TableContainer, + Text, +} from '@chakra-ui/react'; +import { FC } from 'react'; + +interface Props { + columnHeaders: string[] +} + +export const DataTable: FC = ({ + columnHeaders +}) => { + return ( + + + + + { + columnHeaders.map((columnHeader, idx) => { + return ( + + ) + }) + } + + +
+ + {columnHeader} + +
+
+ ) +} \ No newline at end of file diff --git a/src/components/UI/downloads/DownloadsTable.tsx b/src/components/UI/downloads/DownloadsTable.tsx index d621574e15..9da3cdce9a 100644 --- a/src/components/UI/downloads/DownloadsTable.tsx +++ b/src/components/UI/downloads/DownloadsTable.tsx @@ -3,18 +3,13 @@ import { Tabs, TabList, Tab, - Table, - Tbody, - Thead, - Tr, - Th, - Td, - TableContainer, Text, TabPanel, TabPanels, } from '@chakra-ui/react'; +import { DataTable } from '../DataTable' + export const DownloadsTable = () => { return ( @@ -126,84 +121,59 @@ export const DownloadsTable = () => { - - - - - - - - - - - -
- - Release - - - - Commit - - - - Kind - - - - Arch - - - - Size - -
-
+ +
+ + + + + + + + + + +
diff --git a/src/pages/downloads.tsx b/src/pages/downloads.tsx index 2669eee1da..d5066fdae1 100644 --- a/src/pages/downloads.tsx +++ b/src/pages/downloads.tsx @@ -17,6 +17,7 @@ import { DownloadsSection, DownloadsTable, } from '../components/UI/downloads'; +import { DataTable } from '../components/UI/DataTable'; import { GETH_REPO_URL @@ -200,30 +201,14 @@ const DownloadsPage: NextPage = ({}) => {
- - - - - - - -
- - Build Server - - - - UniqueID - - - - OpenPGP Key - - - - Fingerprint - -
+