This repository has been archived by the owner on Oct 20, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(Rating): use a sensible default instead of max rating (#607)
* fix(Rating): use a sensible default instead of max rating * fix(Rating): adjust default to avoid breaking change adjust default for min rating so that 0 displays as before
- Loading branch information
1 parent
4874be9
commit f81ae61
Showing
3 changed files
with
54 additions
and
22 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,11 @@ | ||
import { Icon } from 'nordnet-ui-kit'; | ||
<div> | ||
<Rating rating={3} /> | ||
<Rating rating={4} maxRating={10} /> | ||
<Rating rating={7} maxRating={10} icon={Icon.Car} /> | ||
<Rating rating={7} maxRating={10} icon={Icon.Globe} size={64} /> | ||
<Rating rating={3} /> | ||
<Rating rating={4} maxRating={10} /> | ||
<Rating rating={7} maxRating={10} icon={Icon.Car} /> | ||
<Rating rating={7} maxRating={10} icon={Icon.Globe} size={64} /> | ||
|
||
Default for missing rating data: <Rating /> | ||
Default for zero rating: <Rating rating={0} /> | ||
Show zero rating as no rating: <Rating rating={0} minRating={1} /> | ||
</div> |
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