Skip to content

Commit

Permalink
Convert TreeViewHeader to a functional component
Browse files Browse the repository at this point in the history
* Update test suite to verify the functionality of the
  custom hook added into the TreeViewHeader.
  • Loading branch information
jasonleenaylor committed Dec 1, 2020
1 parent 0e79ab1 commit d2369f8
Show file tree
Hide file tree
Showing 6 changed files with 671 additions and 589 deletions.
274 changes: 274 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@
},
"devDependencies": {
"@sillsdev/react-localize-crowdin": "^1.0.0",
"@testing-library/react": "^11.2.2",
"@testing-library/react-hooks": "^3.4.2",
"@types/jest": "^26.0.14",
"@types/node": "^14.11.5",
"@types/nspell": "^2.1.0",
Expand Down
2 changes: 1 addition & 1 deletion src/components/TreeView/TreeDepiction.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {
} from "../../resources/tree";
import DomainTile, { Direction } from "./DomainTile";
import SemanticDomainWithSubdomains from "../../types/SemanticDomain";
import TreeViewHeader from "./TreeViewHeader";
import { TreeViewHeader } from "./TreeViewHeader";

export const MAX_TILE_WIDTH = 150;
export const MIN_TILE_WIDTH = 75;
Expand Down
Loading

0 comments on commit d2369f8

Please sign in to comment.