Skip to content

Commit 9f4ff11

Browse files
committed
remove all leftover react-icons refrerences
1 parent 8247448 commit 9f4ff11

File tree

27 files changed

+118
-180
lines changed

27 files changed

+118
-180
lines changed

apps/dashboard/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@
8585
"react-dom": "18.3.1",
8686
"react-dropzone": "^14.2.9",
8787
"react-hook-form": "7.52.0",
88-
"react-icons": "^5.2.1",
8988
"react-intersection-observer": "^9.10.3",
9089
"react-markdown": "^9.0.1",
9190
"react-responsive-carousel": "^3.2.23",

apps/dashboard/src/components/buttons/TransactionButton.tsx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import { ToolTipLabel } from "@/components/ui/tooltip";
33
import {
44
Center,
55
Flex,
6-
Icon,
76
Popover,
87
PopoverArrow,
98
PopoverBody,
@@ -12,9 +11,8 @@ import {
1211
} from "@chakra-ui/react";
1312
import { CHAIN_ID_TO_GNOSIS } from "constants/mappings";
1413
import { useActiveChainAsDashboardChain } from "lib/v5-adapter";
15-
import { ArrowLeftRightIcon } from "lucide-react";
14+
import { ArrowLeftRightIcon, InfoIcon } from "lucide-react";
1615
import { useEffect, useMemo, useRef, useState } from "react";
17-
import { FiInfo } from "react-icons/fi";
1816
import {
1917
useActiveAccount,
2018
useActiveWallet,
@@ -209,7 +207,7 @@ const ExternalApprovalNotice: React.FC<ExternalApprovalNoticeProps> = ({
209207
<div className="flex flex-col gap-4">
210208
<Heading size="label.lg">
211209
<div className="flex flex-row items-center gap-2">
212-
<Icon color="primary.500" boxSize={6} as={FiInfo} />
210+
<InfoIcon className="size-6 text-primary-foreground" />
213211
<span>Execute Transaction</span>
214212
</div>
215213
</Heading>
@@ -244,7 +242,7 @@ const ExternalApprovalNotice: React.FC<ExternalApprovalNoticeProps> = ({
244242
<div className="flex flex-col gap-4">
245243
<Heading size="label.lg">
246244
<div className="flex flex-row items-center gap-2">
247-
<Icon color="primary.500" boxSize={6} as={FiInfo} />
245+
<InfoIcon className="size-6 text-primary-foreground" />
248246
<span>Approve Transaction</span>
249247
</div>
250248
</Heading>

apps/dashboard/src/components/chain-validation/index.tsx

Lines changed: 12 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { InlineCode } from "@/components/ui/inline-code";
22
import {
33
FormControl,
4-
Icon,
54
Input,
65
InputGroup,
76
Table,
@@ -13,28 +12,22 @@ import {
1312
} from "@chakra-ui/react";
1413
import { useTrack } from "hooks/analytics/useTrack";
1514
import { useRpcValidation } from "hooks/chains/useRpcValidation";
16-
import { type ChangeEvent, useMemo, useState } from "react";
17-
import type { IconType } from "react-icons";
18-
import { BiCheckCircle, BiErrorCircle } from "react-icons/bi";
19-
import { RiErrorWarningLine } from "react-icons/ri";
15+
import { AlertCircleIcon, CheckCircleIcon } from "lucide-react";
16+
import { type ChangeEvent, useState } from "react";
17+
2018
import { Button, Card, FormLabel, Link, TableContainer } from "tw-components";
2119

22-
const StatusCheck = ({
23-
status,
24-
}: {
20+
const StatusCheck = (props: {
2521
status: "success" | "error" | "warning";
2622
}) => {
27-
const values: [string, IconType] = useMemo(() => {
28-
if (status === "error") {
29-
return ["red.500", BiErrorCircle];
30-
}
31-
if (status === "warning") {
32-
return ["yellow.500", RiErrorWarningLine];
33-
}
34-
return ["green.500", BiCheckCircle];
35-
}, [status]);
36-
37-
return <Icon fontSize={16} color={values[0]} as={values[1]} />;
23+
switch (props.status) {
24+
case "error":
25+
return <AlertCircleIcon className="size-4 text-destructive-text" />;
26+
case "warning":
27+
return <AlertCircleIcon className="size-4 text-warning-text" />;
28+
case "success":
29+
return <CheckCircleIcon className="size-4 text-success-text" />;
30+
}
3831
};
3932

4033
const ChainValidation: React.FC = () => {

apps/dashboard/src/components/contract-components/contract-publish-form/custom-factory.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,15 @@ import {
33
Box,
44
Flex,
55
FormControl,
6-
Icon,
76
IconButton,
87
Input,
98
ListItem,
109
UnorderedList,
1110
} from "@chakra-ui/react";
1211
import type { Abi } from "abitype";
13-
import { PlusIcon } from "lucide-react";
12+
import { PlusIcon, TrashIcon } from "lucide-react";
1413
import { type Dispatch, type SetStateAction, useEffect } from "react";
1514
import { Controller, useFieldArray, useFormContext } from "react-hook-form";
16-
import { FiTrash } from "react-icons/fi";
1715
import { Button, Heading, Text } from "tw-components";
1816
import { useCustomFactoryAbi } from "../hooks";
1917
import { AbiSelector } from "./abi-selector";
@@ -101,7 +99,7 @@ export const CustomFactory: React.FC<CustomFactoryProps> = ({
10199
</Box>
102100
<IconButton
103101
isDisabled={fields.length === 1 || form.formState.isSubmitting}
104-
icon={<Icon as={FiTrash} boxSize={5} />}
102+
icon={<TrashIcon className="size-5" />}
105103
aria-label="Remove row"
106104
onClick={() => remove(index)}
107105
/>

apps/dashboard/src/components/contract-components/contract-publish-form/external-links-input.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,11 @@ import {
22
Divider,
33
Flex,
44
FormControl,
5-
Icon,
65
IconButton,
76
Input,
87
} from "@chakra-ui/react";
8+
import { TrashIcon } from "lucide-react";
99
import { useFormContext } from "react-hook-form";
10-
import { FiTrash } from "react-icons/fi";
1110
import { FormErrorMessage, FormLabel } from "tw-components";
1211

1312
interface ExternalLinksInputProps {
@@ -73,7 +72,7 @@ export const ExternalLinksInput: React.FC<ExternalLinksInputProps> = ({
7372
</FormErrorMessage>
7473
</FormControl>
7574
<IconButton
76-
icon={<Icon as={FiTrash} boxSize={5} />}
75+
icon={<TrashIcon className="size-5" />}
7776
aria-label="Remove row"
7877
onClick={() => remove(index)}
7978
alignSelf="end"

apps/dashboard/src/components/contract-components/publisher/edit-profile.tsx

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import { useThirdwebClient } from "@/constants/thirdweb.client";
44
import {
55
Box,
66
FormControl,
7-
Icon,
87
Input,
98
Textarea,
109
useDisclosure,
@@ -22,11 +21,9 @@ import type { ProfileMetadata, ProfileMetadataInput } from "constants/schemas";
2221
import { useTrack } from "hooks/analytics/useTrack";
2322
import { useImageFileOrUrl } from "hooks/useImageFileOrUrl";
2423
import { useTxNotifications } from "hooks/useTxNotifications";
24+
import { EditIcon, GlobeIcon, ImageIcon, PencilIcon } from "lucide-react";
2525
import { useId } from "react";
2626
import { useForm } from "react-hook-form";
27-
import { BiImage } from "react-icons/bi";
28-
import { FiEdit, FiGlobe } from "react-icons/fi";
29-
import { HiPencilAlt } from "react-icons/hi";
3027
import {
3128
getContractPublisher,
3229
setPublisherProfileUri,
@@ -90,7 +87,7 @@ export const EditProfile: React.FC<EditProfileProps> = ({
9087
onClick={onOpen}
9188
size="sm"
9289
variant="outline"
93-
leftIcon={<Icon as={FiEdit} />}
90+
leftIcon={<EditIcon />}
9491
>
9592
Edit Profile
9693
</Button>
@@ -177,7 +174,7 @@ export const EditProfile: React.FC<EditProfileProps> = ({
177174
<FormControl isInvalid={!!errors.avatar}>
178175
<FormLabel>
179176
<div className="flex flex-row gap-2">
180-
<Icon as={BiImage} boxSize={4} />
177+
<ImageIcon className="size-4" />
181178
Avatar
182179
</div>
183180
</FormLabel>
@@ -200,7 +197,7 @@ export const EditProfile: React.FC<EditProfileProps> = ({
200197
<FormControl isInvalid={!!errors.bio}>
201198
<FormLabel>
202199
<div className="flex flex-row gap-2">
203-
<Icon as={HiPencilAlt} boxSize={4} />
200+
<PencilIcon className="size-4" />
204201
Bio
205202
</div>
206203
</FormLabel>
@@ -240,7 +237,7 @@ export const EditProfile: React.FC<EditProfileProps> = ({
240237
<FormControl isInvalid={!!errors.website}>
241238
<FormLabel>
242239
<div className="flex flex-row gap-2">
243-
<Icon as={FiGlobe} boxSize={4} />
240+
<GlobeIcon className="size-4" />
244241
Website
245242
</div>
246243
</FormLabel>

apps/dashboard/src/components/contract-components/tables/published-contracts.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Alert, AlertIcon, AlertTitle, Flex, Spinner } from "@chakra-ui/react";
22
import { useTrack } from "hooks/analytics/useTrack";
3+
import { RefreshCcwIcon } from "lucide-react";
34
import { useMemo, useState } from "react";
4-
import { IoRefreshSharp } from "react-icons/io5";
55
import { Button, Heading, LinkButton, Text } from "tw-components";
66
import { PublishedContractTable } from "../contract-table-v2";
77
import { usePublishedContractsQuery } from "../hooks";
@@ -100,7 +100,7 @@ export const PublishedContracts: React.FC<PublishedContractsProps> = ({
100100
</AlertTitle>
101101
<Button
102102
onClick={() => publishedContractsQuery.refetch()}
103-
leftIcon={<IoRefreshSharp />}
103+
leftIcon={<RefreshCcwIcon className="size-4" />}
104104
ml="auto"
105105
size="sm"
106106
colorScheme="red"

apps/dashboard/src/components/contract-pages/forms/properties.shared.tsx

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
import {
22
Flex,
33
FormControl,
4-
Icon,
54
IconButton,
65
Input,
76
InputGroup,
87
InputRightElement,
98
Tooltip,
109
} from "@chakra-ui/react";
1110
import { FileInput } from "components/shared/FileInput";
12-
import { PlusIcon } from "lucide-react";
11+
import { BanIcon, PlusIcon, TrashIcon, UploadIcon, XIcon } from "lucide-react";
1312
import { useEffect } from "react";
1413
import {
1514
type ArrayPath,
@@ -24,7 +23,6 @@ import {
2423
type WatchObserver,
2524
useFieldArray,
2625
} from "react-hook-form";
27-
import { FiSlash, FiTrash, FiUpload, FiX } from "react-icons/fi";
2826
import { Button, FormErrorMessage, FormLabel } from "tw-components";
2927

3028
type OptionalPropertiesInput = {
@@ -73,7 +71,7 @@ export const PropertiesFormControl = <
7371
<Flex justify="space-between" align="center" direction="row">
7472
<FormLabel m={0}>Attributes</FormLabel>
7573
<Button
76-
rightIcon={<Icon as={FiSlash} />}
74+
rightIcon={<BanIcon />}
7775
variant="outline"
7876
colorScheme="red"
7977
size="xs"
@@ -120,11 +118,8 @@ export const PropertiesFormControl = <
120118
}
121119
/>
122120
<InputRightElement>
123-
<Icon
124-
as={FiTrash}
125-
cursor="pointer"
126-
color="red.300"
127-
_hover={{ color: "red.200" }}
121+
<TrashIcon
122+
className="cursor-pointer text-red-300 hover:text-red-200"
128123
onClick={() =>
129124
setValue(
130125
`attributes.${index}.value` as Path<TFieldValues>,
@@ -155,10 +150,7 @@ export const PropertiesFormControl = <
155150
);
156151
}}
157152
>
158-
<Icon
159-
as={FiUpload}
160-
className="text-muted-foreground"
161-
/>
153+
<UploadIcon className="text-muted-foreground" />
162154
</FileInput>
163155
</Tooltip>
164156
</InputRightElement>
@@ -173,7 +165,7 @@ export const PropertiesFormControl = <
173165
variant="ghost"
174166
aria-label="remove key value pair"
175167
size="xs"
176-
icon={<Icon as={FiX} />}
168+
icon={<XIcon />}
177169
/>
178170
</div>
179171
);

apps/dashboard/src/components/product-pages/common/GameCard.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { Box, Flex, useBreakpointValue } from "@chakra-ui/react";
22
import { GithubIcon } from "components/icons/brand-icons/GithubIcon";
33
import { useTrack } from "hooks/analytics/useTrack";
4+
import { GamepadIcon } from "lucide-react";
45
import NextImage, { type StaticImageData } from "next/image";
5-
import { IoGameControllerOutline } from "react-icons/io5";
66
import {
77
Button,
88
Card,
@@ -72,7 +72,7 @@ export const GameCard: React.FC<GameCardProps> = ({
7272
/>
7373
<div className="absolute inset-0 flex items-center justify-center">
7474
<Button
75-
leftIcon={<IoGameControllerOutline />}
75+
leftIcon={<GamepadIcon />}
7676
color="white"
7777
bg="rgba(0,0,0,.5)"
7878
_groupHover={{ bg: "rgba(0,0,0,.9)" }}

apps/dashboard/src/components/product-pages/common/GuideShowcase.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { Flex, Icon, SimpleGrid } from "@chakra-ui/react";
2-
import { FiArrowRight } from "react-icons/fi";
1+
import { Flex, SimpleGrid } from "@chakra-ui/react";
2+
import { ArrowRightIcon } from "lucide-react";
33
import { Heading, TrackedLink, type TrackedLinkProps } from "tw-components";
44
import { GuideCard } from "./GuideCard";
55
import { ProductSection } from "./ProductSection";
@@ -105,7 +105,7 @@ export const GuidesShowcase: React.FC<GuidesShowcaseProps> = ({
105105
See all of our {solution.replace("-", " ")}{" "}
106106
{caseStudies ? "case studies" : "guides"}
107107
</Heading>
108-
<Icon as={FiArrowRight} />
108+
<ArrowRightIcon />
109109
</Flex>
110110
</TrackedLink>
111111
)}

0 commit comments

Comments
 (0)