-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Add publish script - Add fallback if no capacity value is available - Add maximum capacity value (#2) Co-authored-by: Jatin Kumar <main.jatink@gmail.com>
- Loading branch information
1 parent
075164f
commit ea7341f
Showing
4 changed files
with
34 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
# Battery Health Check Changelog | ||
|
||
## [Add Battery Health Check] - 2022-07-05 | ||
## [Add Maximum Capacity Value] - {PR_MERGE_DATE} | ||
- Added a new component to display the maximum capacity value of the battery. | ||
|
||
## [Add Battery Health Check] - 2022-06-25 | ||
|
||
Initial version code |
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,9 @@ | ||
import StatsListItem from "./StatsListItem"; | ||
|
||
const MaxCapacityItem = (props: { health: number }) => { | ||
const health = props.health ? `${props.health}` : "--"; | ||
|
||
return <StatsListItem label="Maximum Capacity" value={health} />; | ||
}; | ||
|
||
export default MaxCapacityItem; |
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