Skip to content

Commit fea903e

Browse files
committed
Update 4
1 parent ed8d1cc commit fea903e

File tree

4 files changed

+10
-29
lines changed

4 files changed

+10
-29
lines changed

apps/dashboard/src/components/product-pages/common/nav/NavCard.tsx

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Box, Icon, Stack } from "@chakra-ui/react";
1+
import { Box, Stack } from "@chakra-ui/react";
22
import { ChakraNextImage } from "components/Image";
33
import { Text, TrackedLink } from "tw-components";
44
import type { SectionItemProps, SectionProps } from "./types";
@@ -9,7 +9,6 @@ export const NavCard: React.FC<SectionItemProps | SectionProps> = ({
99
label,
1010
link,
1111
icon,
12-
iconType,
1312
comingSoon,
1413
}) => {
1514
return (
@@ -26,14 +25,6 @@ export const NavCard: React.FC<SectionItemProps | SectionProps> = ({
2625
{icon && (
2726
<ChakraNextImage boxSize={7} mb="-4px" src={icon} alt="icon" />
2827
)}
29-
{iconType && (
30-
<Icon
31-
as={iconType}
32-
color={comingSoon ? "whiteAlpha.400" : "white"}
33-
boxSize={6}
34-
mr={2}
35-
/>
36-
)}
3728
<div className="flex flex-col">
3829
<Text
3930
fontWeight="bold"

apps/dashboard/src/components/product-pages/common/nav/types.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import type { IconType } from "@react-icons/all-files";
21
import type { StaticImageData } from "next/image";
32

43
export interface SectionProps {
@@ -8,7 +7,6 @@ export interface SectionProps {
87
icon?: StaticImageData;
98
link?: string;
109
section?: "contracts-v2" | "connect-v2" | "engine-v2";
11-
iconType?: IconType;
1210
comingSoon?: boolean;
1311
}
1412

@@ -20,7 +18,6 @@ export interface SectionItemProps {
2018
link: string;
2119
dashboardLink?: string;
2220
icon?: StaticImageData;
23-
iconType?: IconType;
2421
comingSoon?: boolean;
2522
inLandingPage?: boolean;
2623
section:

apps/dashboard/src/core-ui/batch-upload/batch-lazy-mint.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,10 @@ import {
1313
Textarea,
1414
} from "@chakra-ui/react";
1515
import { zodResolver } from "@hookform/resolvers/zod";
16-
import { AiFillEye } from "@react-icons/all-files/ai/AiFillEye";
17-
import { AiFillEyeInvisible } from "@react-icons/all-files/ai/AiFillEyeInvisible";
1816
import { TransactionButton } from "components/buttons/TransactionButton";
1917
import { FileInput } from "components/shared/FileInput";
2018
import { useImageFileOrUrl } from "hooks/useImageFileOrUrl";
19+
import { Eye, EyeOff } from "lucide-react";
2120
import { useRef, useState } from "react";
2221
import { useDropzone } from "react-dropzone";
2322
import { useForm } from "react-hook-form";
@@ -396,10 +395,11 @@ const SelectReveal: React.FC<SelectRevealProps> = ({
396395
type={show ? "text" : "password"}
397396
/>
398397
<InputRightElement cursor="pointer">
399-
<Icon
400-
as={show ? AiFillEye : AiFillEyeInvisible}
401-
onClick={() => setShow(!show)}
402-
/>
398+
{show ? (
399+
<Eye onClick={() => setShow(!show)} size={12} />
400+
) : (
401+
<EyeOff onClick={() => setShow(!show)} size={12} />
402+
)}
403403
</InputRightElement>
404404
</InputGroup>
405405

apps/dashboard/src/core-ui/batch-upload/lazy-mint-form/select-option.tsx

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,5 @@
1-
import {
2-
Flex,
3-
Icon,
4-
Radio,
5-
Stack,
6-
type StackProps,
7-
Tooltip,
8-
} from "@chakra-ui/react";
9-
import { AiOutlineInfoCircle } from "@react-icons/all-files/ai/AiOutlineInfoCircle";
1+
import { Flex, Radio, Stack, type StackProps, Tooltip } from "@chakra-ui/react";
2+
import { Info } from "lucide-react";
103
import type { MouseEventHandler } from "react";
114
import { Card, Heading, Text } from "tw-components";
125

@@ -97,7 +90,7 @@ export const SelectOption: React.FC<SelectOptionProps> = ({
9790
}
9891
>
9992
<Flex alignItems="center">
100-
<Icon as={AiOutlineInfoCircle} boxSize={5} />
93+
<Info size={16} />
10194
</Flex>
10295
</Tooltip>
10396
</div>

0 commit comments

Comments
 (0)