update ticketlist

This commit is contained in:
Ruidy Nemausat 2020-04-03 13:01:28 +02:00
parent 597c8066ae
commit 9e0a2f0d47

View file

@ -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,18 +50,27 @@ export const TicketList: FC<TicketListProps> = ({
show={showNew}
allProjects={allProjects}
/>
<h3>Tickets</h3>
<Grid container>
<Grid item xs>
<Typography variant="h4" component="h4">
Tickets
</Typography>
</Grid>
<Grid item xs>
{addButton && (
<FloatingButton color="primary" size="small" onClick={onClick} />
)}
</Grid>
<Grid item xs={4}>
<FilterBar
filterText={filterText}
handleChange={handleChange}
clearFilterText={clearFilterText}
/>
</div>
</Grid>
<Grid item xs={12}>
<div className="col s12 grey lighten-1">
<ul>
{filteredTickets.length === 0 ? (
<HorizontalCard />
) : (
@ -80,7 +90,9 @@ export const TicketList: FC<TicketListProps> = ({
/>
))
)}
</ul>
</div>
</Grid>
</Grid>
</div>
</>
);