diff options
author | Michael Muré <batolettre@gmail.com> | 2018-08-15 15:50:19 +0200 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2018-08-15 15:50:19 +0200 |
commit | 2530cee1eac225924e1119554cf475cdc46ed7dc (patch) | |
tree | 4d36ca529a2e25a3fe9f1a881d037215184ec9a1 /webui/src/Bug.js | |
parent | 24d862a65c603de4ea77a2688f5c90effc65be2f (diff) | |
download | git-bug-2530cee1eac225924e1119554cf475cdc46ed7dc.tar.gz |
webui: reorganize the code
Diffstat (limited to 'webui/src/Bug.js')
-rw-r--r-- | webui/src/Bug.js | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/webui/src/Bug.js b/webui/src/Bug.js deleted file mode 100644 index 91463b51..00000000 --- a/webui/src/Bug.js +++ /dev/null @@ -1,43 +0,0 @@ -import { withStyles } from '@material-ui/core/styles' -import gql from 'graphql-tag' -import React from 'react' -import BugSummary from './BugSummary' - -import Comment from './Comment' - -const styles = theme => ({ - main: { - maxWidth: 600, - margin: 'auto', - marginTop: theme.spacing.unit * 4 - } -}) - -const Bug = ({bug, classes}) => ( - <main className={classes.main}> - <BugSummary bug={bug}/> - - {bug.comments.edges.map(({cursor, node}) => ( - <Comment key={cursor} comment={node}/> - ))} - </main> -) - -Bug.fragment = gql` - fragment Bug on Bug { - ...BugSummary - comments(first: 10) { - edges { - cursor - node { - ...Comment - } - } - } - } - - ${BugSummary.fragment} - ${Comment.fragment} -` - -export default withStyles(styles)(Bug) |