Skip to content

Commit

Permalink
added commas to energy display
Browse files Browse the repository at this point in the history
  • Loading branch information
ametel01 committed Dec 24, 2023
1 parent 321176e commit f03ddca
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packages/frontend/src/components/ui/ResourcesContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,11 @@ const TotalResourceWrapper = styled.div`
interface Props {
spendable?: string;
collectible?: string;
available?: string;
available?: number;
img: string;
title: string;
address?: string;
fromCelestia?: string;
fromCelestia?: number;
}

const Energy = ({ available, img, title, fromCelestia }: Props) => {
Expand Down Expand Up @@ -119,10 +119,10 @@ const Energy = ({ available, img, title, fromCelestia }: Props) => {
</ResourceName>
</TotalResourceContainer>
<TotalResourceText style={availableStyle}>
{String(available)}
{numberWithCommas(available!)}
</TotalResourceText>
<ResourceName style={{ fontSize: "10px" }}>Celestia</ResourceName>
<TotalResourceText>{String(fromCelestia)}</TotalResourceText>
<TotalResourceText>{numberWithCommas(fromCelestia!)}</TotalResourceText>
</div>
</Tooltip>
</TotalResourceWrapper>
Expand Down Expand Up @@ -270,8 +270,8 @@ const ResourcesContainer = ({ planetId }: ResourceContainerArgs) => {
<Energy
title="Energy"
img={energyImg}
available={String(netEnergy)}
fromCelestia={String(energyFromCelestia)}
available={netEnergy}
fromCelestia={energyFromCelestia}
/>
</div>
);
Expand Down

0 comments on commit f03ddca

Please sign in to comment.