From 9e0a2f0d47242c297d86715d83cbcbcdf22da77b Mon Sep 17 00:00:00 2001 From: Ruidy Nemausat Date: Fri, 3 Apr 2020 13:01:28 +0200 Subject: [PATCH] update ticketlist --- client/src/components/TicketList.tsx | 76 ++++++++++++++++------------ 1 file changed, 44 insertions(+), 32 deletions(-) diff --git a/client/src/components/TicketList.tsx b/client/src/components/TicketList.tsx index 0910d8f..94fcfae 100644 --- a/client/src/components/TicketList.tsx +++ b/client/src/components/TicketList.tsx @@ -8,6 +8,7 @@ import { put } from "../utils/http"; import { Constants } from "../utils/Constants"; import { NewTicketModal } from "./NewTicketModal"; import { Project } from "../types/Project"; +import { Grid, Typography } from "@material-ui/core"; type TicketListProps = { tickets: Ticket[]; @@ -49,38 +50,49 @@ export const TicketList: FC = ({ show={showNew} allProjects={allProjects} /> -

Tickets

- {addButton && ( - - )} - - -
-
    - {filteredTickets.length === 0 ? ( - - ) : ( - filteredTickets.map((t: Ticket) => ( - { - e.preventDefault(); - await put>( - `${Constants.ticketsURI}/${t.id}/closed`, - {} - ); - }} - /> - )) - )} -
+ + + + + Tickets + + + + {addButton && ( + + )} + + + + + +
+ {filteredTickets.length === 0 ? ( + + ) : ( + filteredTickets.map((t: Ticket) => ( + { + e.preventDefault(); + await put>( + `${Constants.ticketsURI}/${t.id}/closed`, + {} + ); + }} + /> + )) + )} +
+
+
);