diff options
author | Michael Muré <batolettre@gmail.com> | 2018-08-14 02:06:02 +0200 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2018-08-14 02:06:02 +0200 |
commit | 5edcb6c8bd430af4c26567d19c388d4c3e30b681 (patch) | |
tree | b47590b6c880f62f0b386e5433aafd010093ab03 /webui/src/Bug.js | |
parent | 4c850b598939536b2e09ed520e427e94d0026211 (diff) | |
download | git-bug-5edcb6c8bd430af4c26567d19c388d4c3e30b681.tar.gz |
webui: revamp the bug list
Diffstat (limited to 'webui/src/Bug.js')
-rw-r--r-- | webui/src/Bug.js | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/webui/src/Bug.js b/webui/src/Bug.js index bca23e58..91463b51 100644 --- a/webui/src/Bug.js +++ b/webui/src/Bug.js @@ -1,27 +1,27 @@ -import React from "react"; -import gql from "graphql-tag"; -import { withStyles } from "@material-ui/core/styles"; +import { withStyles } from '@material-ui/core/styles' +import gql from 'graphql-tag' +import React from 'react' +import BugSummary from './BugSummary' -import Comment from "./Comment"; -import BugSummary from "./BugSummary"; +import Comment from './Comment' const styles = theme => ({ main: { maxWidth: 600, - margin: "auto", + margin: 'auto', marginTop: theme.spacing.unit * 4 } -}); +}) -const Bug = ({ bug, classes }) => ( +const Bug = ({bug, classes}) => ( <main className={classes.main}> - <BugSummary bug={bug} /> + <BugSummary bug={bug}/> - {bug.comments.edges.map(({ cursor, node }) => ( - <Comment key={cursor} comment={node} /> + {bug.comments.edges.map(({cursor, node}) => ( + <Comment key={cursor} comment={node}/> ))} </main> -); +) Bug.fragment = gql` fragment Bug on Bug { @@ -38,6 +38,6 @@ Bug.fragment = gql` ${BugSummary.fragment} ${Comment.fragment} -`; +` -export default withStyles(styles)(Bug); +export default withStyles(styles)(Bug) |