Skip to content

Commit ed1b8ad

Browse files
committed
chore: code smells
1 parent 2db71ff commit ed1b8ad

File tree

1 file changed

+8
-12
lines changed

1 file changed

+8
-12
lines changed

web/src/pages/Dashboard/JurorInfo/JurorRewards.tsx

+8-12
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
import React from "react";
22
import styled from "styled-components";
33

4-
import { useAccount } from "wagmi";
5-
64
import { CoinIds } from "consts/coingecko";
75
import { useCoinPrice } from "hooks/useCoinPrice";
86
import { getFormattedRewards } from "utils/jurorRewardConfig";
@@ -38,16 +36,14 @@ const JurorRewards: React.FC<IJurorRewards> = ({ addressToQuery }) => {
3836
const formattedRewards = getFormattedRewards(data, pricesData);
3937

4038
return (
41-
<>
42-
<Container>
43-
<WithHelpTooltip place="bottom" {...{ tooltipMsg }}>
44-
<label> Juror Rewards </label>
45-
</WithHelpTooltip>
46-
{formattedRewards.map(({ token, amount, value }) => (
47-
<TokenRewards key={token} {...{ token }} amount={amount} value={value} />
48-
))}
49-
</Container>
50-
</>
39+
<Container>
40+
<WithHelpTooltip place="bottom" {...{ tooltipMsg }}>
41+
<label> Juror Rewards </label>
42+
</WithHelpTooltip>
43+
{formattedRewards.map(({ token, amount, value }) => (
44+
<TokenRewards key={token} {...{ token }} amount={amount} value={value} />
45+
))}
46+
</Container>
5147
);
5248
};
5349

0 commit comments

Comments
 (0)