Skip to content

Commit e5af1a3

Browse files
chore(Stat): use named imports from react
1 parent e697f21 commit e5af1a3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/components/Stat/index.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as React from "react"
1+
import { useEffect, useState } from "react"
22
import type { IconType } from "react-icons/lib"
33
import { MdInfoOutline, MdWarning } from "react-icons/md"
44
import { Flex, HStack, Icon, Text } from "@chakra-ui/react"
@@ -20,12 +20,12 @@ export type StatProps = {
2020
}
2121

2222
const Stat = ({ tooltipProps, value, label, isError }: StatProps) => {
23-
const [content, setContent] = React.useState<{
23+
const [content, setContent] = useState<{
2424
contentValue: string | JSX.Element
2525
tooltipIcon: IconType
2626
}>(initialContent)
2727

28-
React.useEffect(() => {
28+
useEffect(() => {
2929
if (isError) {
3030
return setContent({
3131
contentValue: NULL_VALUE,

0 commit comments

Comments
 (0)