diff options
author | Amine Hilaly <hilalyamine@gmail.com> | 2019-05-17 12:43:17 +0200 |
---|---|---|
committer | Quentin Gliech <quentingliech@gmail.com> | 2019-05-22 20:41:03 +0200 |
commit | aa6247ce870075922a1309718e8fafee321ef51d (patch) | |
tree | 1a4b92ce3ba7754522cf1018e712eb59067661e2 /webui/src/Label.js | |
parent | 511ef0105cbc6a08298cd63320283bf41090d4e3 (diff) | |
download | git-bug-aa6247ce870075922a1309718e8fafee321ef51d.tar.gz |
webui: Add Label gql fragment
Diffstat (limited to 'webui/src/Label.js')
-rw-r--r-- | webui/src/Label.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/webui/src/Label.js b/webui/src/Label.js index de2ccd61..fc8a3a22 100644 --- a/webui/src/Label.js +++ b/webui/src/Label.js @@ -1,4 +1,5 @@ import React from 'react'; +import gql from 'graphql-tag'; import { makeStyles } from '@material-ui/styles'; import { getContrastRatio, @@ -46,4 +47,15 @@ function Label({ label }) { ); } +Label.fragment = gql` + fragment Label on Label { + name + color { + R + G + B + } + } +`; + export default Label; |