Skip to content

Commit

Permalink
Resolve missing keys warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
andreielnino committed Mar 2, 2023
1 parent 451cc95 commit fdfdcaf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const BatteriesOverview = ({ mode = "full" }: Props) => {
>
<Paginator selectorLocation={"top-center"}>
{overviewBatteries.map((b) => (
<div className={"h-full flex items-center justify-center"}>
<div key={b.id} className={"h-full flex items-center justify-center"}>
<BatterySummary key={b.id} battery={b} boxSize={boxSize} />
</div>
))}
Expand Down
4 changes: 2 additions & 2 deletions src/app/Marine2/components/ui/ValueBar/ValueBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ const ValueBar = ({ values, prefix }: Props) => {
<div className={"border-victron-gray-200 border-t-2 text-victron-gray dark:text-victron-gray-500 px-2 -mx-2 flex"}>
{prefix && <div className={"w-10"}>{prefix}</div>}
<div className={"flex justify-between grow"}>
{values.map((v) => (
<div>
{values.map((v, idx) => (
<div key={idx}>
{v.value && useKw && v.unit === "W" ? formatValue(v.value / 1000) : formatValue(v.value)}
<span className={"ml-px text-victron-gray-400"}>{v.unit}</span>
</div>
Expand Down

0 comments on commit fdfdcaf

Please sign in to comment.