-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Put checkout suggestions next to total score instead of below
- Loading branch information
Showing
4 changed files
with
44 additions
and
17 deletions.
There are no files selected for viewing
16 changes: 9 additions & 7 deletions
16
src/components/scorecard/components/checkout-suggestion/checkout-suggestion.marko
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 |
---|---|---|
@@ -1,7 +1,9 @@ | ||
<div class=`checkout-suggestion ${state.suggestion.length == 0 ? 'transparent' : ''}`> | ||
<for|dart| of=state.suggestion> | ||
<div class=`suggested-dart dart-score-${dart.modifier}`> | ||
${dart.modifier == 'triple' ? 'T-' : (dart.modifier == 'double' ? 'D-' : '')}${dart.value} | ||
</div> | ||
</for> | ||
</div> | ||
<span class="checkout-suggestion-container"> | ||
<div class=`checkout-suggestion ${state.suggestion.length == 0 ? 'transparent' : ''}`> | ||
<for|dart| of=state.suggestion> | ||
<div class=`suggested-dart dart-score-${dart.modifier}`> | ||
${dart.modifier == 'triple' ? 'T-' : (dart.modifier == 'double' ? 'D-' : '')}${dart.value} | ||
</div> | ||
</for> | ||
</div> | ||
</span> |
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