From 6a502c145bd8f2e2e1a9c0b103c11f0433c60737 Mon Sep 17 00:00:00 2001 From: Quentin Gliech Date: Tue, 4 Feb 2020 20:57:43 +0100 Subject: webui: convert bug list to typescript --- webui/src/list/List.tsx | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 webui/src/list/List.tsx (limited to 'webui/src/list/List.tsx') diff --git a/webui/src/list/List.tsx b/webui/src/list/List.tsx new file mode 100644 index 00000000..23b193d4 --- /dev/null +++ b/webui/src/list/List.tsx @@ -0,0 +1,20 @@ +import Table from '@material-ui/core/Table/Table'; +import TableBody from '@material-ui/core/TableBody/TableBody'; +import React from 'react'; +import BugRow from './BugRow'; +import { BugListFragment } from './ListQuery.generated'; + +type Props = { bugs: BugListFragment }; +function List({ bugs }: Props) { + return ( + + + {bugs.edges.map(({ cursor, node }) => ( + + ))} + +
+ ); +} + +export default List; -- cgit