forked from jappel/leistungsbilanz-ts
Add distribution power summaries
This commit is contained in:
parent
dcb303284c
commit
9ea081179d
28 changed files with 2668 additions and 77 deletions
|
|
@ -4,7 +4,10 @@ import { useEffect, useState } from "react";
|
|||
import { Fragment } from "react";
|
||||
import { getCircuitTree } from "../utils/api";
|
||||
import type { CircuitTreeCircuitDto, CircuitTreeResponseDto } from "../types";
|
||||
import { formatValue } from "../utils/circuit-grid-model";
|
||||
import {
|
||||
formatValue,
|
||||
getCircuitSectionLabel,
|
||||
} from "../utils/circuit-grid-model";
|
||||
|
||||
function renderCircuitSummaryLabel(circuit: CircuitTreeCircuitDto) {
|
||||
if (circuit.displayName?.trim()) {
|
||||
|
|
@ -98,7 +101,7 @@ function SectionRows(props: { section: CircuitTreeResponseDto["sections"][number
|
|||
<>
|
||||
<tr className="section-row">
|
||||
<td colSpan={21}>
|
||||
<strong>{section.displayName}</strong>
|
||||
<strong>{getCircuitSectionLabel(section)}</strong>
|
||||
</td>
|
||||
</tr>
|
||||
{section.circuits.map((circuit) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue