import React from "react"; import { Link } from "react-router-dom"; import gql from "graphql-tag"; import { withStyles } from "@material-ui/core/styles"; import Card from "@material-ui/core/Card"; import CardContent from "@material-ui/core/CardContent"; import Chip from "@material-ui/core/Chip"; import Typography from "@material-ui/core/Typography"; const styles = theme => ({ labelList: { display: "flex", flexWrap: "wrap", marginTop: theme.spacing.unit }, label: { marginRight: theme.spacing.unit }, summary: { marginBottom: theme.spacing.unit * 2 } }); const BugSummary = ({ bug, classes }) => ( {bug.title} #{bug.id.slice(0, 8)} •{" "} {bug.status.toUpperCase()}
{bug.labels.map(label => ( ))}
); BugSummary.fragment = gql` fragment BugSummary on Bug { id title status labels } `; export default withStyles(styles)(BugSummary);