File tree Expand file tree Collapse file tree 1 file changed +9
-14
lines changed
gui/src/components/tracker Expand file tree Collapse file tree 1 file changed +9
-14
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ export function TrackerBattery({
1515 */
1616 value : number ;
1717 voltage ?: number | null ;
18- runtime ?: BigInt | null
18+ runtime ?: bigint | null ;
1919 disabled ?: boolean ;
2020 textColor ?: string ;
2121} ) {
@@ -35,24 +35,19 @@ export function TrackerBattery({
3535 return (
3636 < div className = "flex gap-2" >
3737 < div className = "flex flex-col justify-around" >
38- < BatteryIcon value = { value } disabled = { disabled } charging = { charging } />
38+ < BatteryIcon value = { value } disabled = { disabled } charging = { charging } />
3939 </ div >
4040 { ( ( ! charging || showVoltage ) && (
4141 < div className = "w-15" >
4242 { ! charging && runtime && (
4343 < Typography color = { textColor } >
44- { ( (
45- runtime . valueOf ( ) /
46- BigInt ( 3600000000 )
47- ) . toString ( ) +
48- 'h ' +
49- (
50- ( runtime . valueOf ( ) %
51- BigInt ( 3600000000 ) ) /
52- BigInt ( 60000000 )
53- ) . toString ( ) +
54- 'min' ) ||
55- 'N/A' }
44+ { ( runtime . valueOf ( ) / BigInt ( 3600000000 ) ) . toString ( ) +
45+ 'h ' +
46+ (
47+ ( runtime . valueOf ( ) % BigInt ( 3600000000 ) ) /
48+ BigInt ( 60000000 )
49+ ) . toString ( ) +
50+ 'min' || 'N/A' }
5651 </ Typography >
5752 ) }
5853 { ! charging && ( ! runtime || showVoltage ) && (
You can’t perform that action at this time.
0 commit comments