Closed JongtaekChoi closed 3 years ago
Merging #357 into master will decrease coverage by
0.03%
. The diff coverage is100.00%
.
@@ Coverage Diff @@
## master #357 +/- ##
==========================================
- Coverage 77.16% 77.12% -0.04%
==========================================
Files 37 38 +1
Lines 1226 1224 -2
Branches 372 372
==========================================
- Hits 946 944 -2
Misses 167 167
Partials 113 113
@JongtaekChoi How does this remove circular import?
@hyochan
In the previous commit, GroupCheckboxContext
was imported from CheckBox.tsx
file, and CheckBox
Component was imported from CheckBoxGroup.tsx
File, so circular import occurred.
I moved GroupCheckboxContext
into a new file (GroupCheckboxContext.ts
) and set to import it from CheckBox.tsx
and CheckBoxGroup.tsx
files respectively.
And because the context required some types in CheckboxGroup.tsx
file so I moved them to another new file(types.tsx
) to avoid circular import.
Description
For removing the circular import, I moved types and GroupCheckboxContext to other files.
Checklist
Before you create this PR confirms that it meets all requirements listed below by checking the relevant checkboxes (
[x]
). This will ensure a smooth and quick review process.yarn test
oryarn test -u
if you need to update snapshot.yarn lint