-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor distribution-bar chart derivatives to use composition instea…
…d of inheritance
- Loading branch information
1 parent
9e606f3
commit e818757
Showing
4 changed files
with
34 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{{#if hasBlock}} | ||
{{#distribution-bar data-test-allocation-status-bar | ||
class=class | ||
data=allocationsByStatus | ||
isNarrow=isNarrow as |chart|}} | ||
{{yield chart}} | ||
{{/distribution-bar}} | ||
{{else}} | ||
{{distribution-bar data-test-allocation-status | ||
class=class | ||
data=allocationsByStatus | ||
isNarrow=isNarrow}} | ||
{{/if}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{{#if hasBlock}} | ||
{{#distribution-bar data-test-children-status-bar | ||
class=class | ||
data=childrenByStatus | ||
isNarrow=isNarrow as |chart|}} | ||
{{yield chart}} | ||
{{/distribution-bar}} | ||
{{else}} | ||
{{distribution-bar data-test-children-status-bar | ||
class=class | ||
data=childrenByStatus | ||
isNarrow=isNarrow}} | ||
{{/if}} |