Skip to content

Commit ea5bbd3

Browse files
authored
Update PowerSummaryTable.js
1 parent 5d5a384 commit ea5bbd3

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/components/Tables/PowerSummaryTable.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ function PowerSummaryTable({
2323
}) {
2424
const [thermalData, setThermalData] = useState({
2525
ambientTypical: 25,
26-
ambientWorstCase: 50,
26+
ambientWorseCase: 50,
2727
thetaJa: 10,
2828
});
2929

@@ -34,7 +34,7 @@ function PowerSummaryTable({
3434
});
3535

3636
const ambientTypicalRef = useRef(null);
37-
const ambientWorstCaseRef = useRef(null);
37+
const ambientWorseCaseRef = useRef(null);
3838
const thetaJaRef = useRef(null);
3939
const powerBudgetRef = useRef(null);
4040
const fpgaScalingRef = useRef(null);
@@ -51,7 +51,7 @@ function PowerSummaryTable({
5151
// Process thermal data
5252
setThermalData({
5353
ambientTypical: specification.thermal?.ambient?.typical || 25,
54-
ambientWorstCase: specification.thermal?.ambient?.worstcase || 50,
54+
ambientWorseCase: specification.thermal?.ambient?.worsecase || 50,
5555
thetaJa: specification.thermal?.theta_ja || 10,
5656
});
5757

@@ -78,7 +78,7 @@ function PowerSummaryTable({
7878
thermal: {
7979
ambient: {
8080
typical: thermalDataParam.ambientTypical || 0,
81-
worsecase: thermalDataParam.ambientWorstCase || 0, // Matches schema
81+
worsecase: thermalDataParam.ambientWorseCase || 0, // Matches schema
8282
},
8383
theta_ja: thermalDataParam.thetaJa || 0,
8484
},
@@ -179,7 +179,7 @@ function PowerSummaryTable({
179179
<tr>
180180
<th />
181181
<th className="typical-header">Typical</th>
182-
<th className="worst-header">Worst-Case</th>
182+
<th className="worse-header">Worse-Case</th>
183183
</tr>
184184
</thead>
185185
<tbody>
@@ -192,18 +192,18 @@ function PowerSummaryTable({
192192
onChange={(e) => handleFieldUpdate('ambientTypical', e.target.value)}
193193
onInput={enforceNumericInput}
194194
ref={ambientTypicalRef}
195-
onKeyDown={(e) => handleKeyDown(e, ambientWorstCaseRef)}
195+
onKeyDown={(e) => handleKeyDown(e, ambientWorseCaseRef)}
196196
/>
197197
{' '}
198198
°C
199199
</td>
200200
<td className="value-cell">
201201
<input
202202
type="text"
203-
value={thermalData.ambientWorstCase}
204-
onChange={(e) => handleFieldUpdate('ambientWorstCase', e.target.value)}
203+
value={thermalData.ambientWorseCase}
204+
onChange={(e) => handleFieldUpdate('ambientWorseCase', e.target.value)}
205205
onInput={enforceNumericInput}
206-
ref={ambientWorstCaseRef}
206+
ref={ambientWorseCaseRef}
207207
onKeyDown={(e) => handleKeyDown(e, thetaJaRef)}
208208
/>
209209
{' '}

0 commit comments

Comments
 (0)