fix: rewrite the label manager to no longer use useRef

useRef was causing a `readonly` error when trying to overwrite
`ref.current`. Rewrote components to use an Apollo query instead.

fixes #121
This commit is contained in:
Jordan Knott
2021-09-13 12:44:02 -05:00
parent d1b867db35
commit 76e398488f
6 changed files with 895 additions and 797 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,26 @@
import gql from 'graphql-tag';
import TASK_FRAGMENT from './fragments/task';
const FIND_PROJECT_QUERY = gql`
query labels($projectID: UUID!) {
findProject(input: { projectID: $projectID }) {
labels {
id
createdDate
name
labelColor {
id
name
colorHex
position
}
}
}
labelColors {
id
position
colorHex
name
}
}
`;