Skip to content

Commit 4a2ec80

Browse files
author
soheil
committed
Set Icon color
1 parent 6c90dff commit 4a2ec80

File tree

1 file changed

+8
-15
lines changed

1 file changed

+8
-15
lines changed

src/components/Staking/StakingStatsBox.tsx

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,7 @@
11
// Import libraries
22
import React, { useState, useEffect, ReactNode } from "react"
33
import { useIntl } from "react-intl"
4-
import {
5-
Code,
6-
Flex,
7-
Icon,
8-
Spinner,
9-
VStack,
10-
} from "@chakra-ui/react"
4+
import { Code, Flex, Icon, Spinner, VStack } from "@chakra-ui/react"
115
// Import components
126
import Translation from "../Translation"
137
import Tooltip from "../Tooltip"
@@ -25,9 +19,9 @@ const MAX_EFFECTIVE_BALANCE = 32
2519

2620
const Cell: React.FC<{ children: ReactNode }> = ({ children }) => {
2721
return (
28-
<VStack
29-
spacing={2}
30-
py={4}
22+
<VStack
23+
spacing={2}
24+
py={4}
3125
px={8}
3226
borderLeft={{ md: "1px" }}
3327
borderTop={{ base: "1px", md: "none" }}
@@ -43,7 +37,6 @@ const Cell: React.FC<{ children: ReactNode }> = ({ children }) => {
4337
)
4438
}
4539

46-
4740
const Value: React.FC<{ children: ReactNode; title: string }> = ({
4841
children,
4942
title,
@@ -84,11 +77,11 @@ const BeaconchainTooltip = ({ isEthStore }: { isEthStore?: boolean }) => (
8477
>
8578
<Icon
8679
as={MdInfoOutline}
87-
fill="text"
80+
color="text"
8881
marginInlineStart={2}
89-
_hover={{ fill: "primary" }}
90-
_active={{ fill: "primary" }}
91-
_focus={{ fill: "primary" }}
82+
_hover={{ color: "primary" }}
83+
_active={{ color: "primary" }}
84+
_focus={{ color: "primary" }}
9285
boxSize={4}
9386
/>
9487
</Tooltip>

0 commit comments

Comments
 (0)