Skip to content

Commit 7d5099a

Browse files
committed
Update
1 parent 58475b6 commit 7d5099a

File tree

17 files changed

+52
-64
lines changed

17 files changed

+52
-64
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ import type {
3535
import { getSDKTheme } from "app/components/sdk-component-theme";
3636
import { LOCAL_NODE_PKEY } from "constants/misc";
3737
import { useTrack } from "hooks/analytics/useTrack";
38-
import { ExternalLinkIcon, TriangleAlert } from "lucide-react";
38+
import { ExternalLinkIcon, TriangleAlertIcon } from "lucide-react";
3939
import { useTheme } from "next-themes";
4040
import Link from "next/link";
4141
import { forwardRef, useCallback, useMemo, useRef, useState } from "react";
@@ -447,7 +447,7 @@ const MismatchNotice: React.FC<{
447447
<div className="flex flex-col gap-4">
448448
<Heading size="label.lg">
449449
<div className="flex flex-row items-center gap-2">
450-
<TriangleAlert />
450+
<TriangleAlertIcon className="size-6" />
451451
<span>Network Mismatch</span>
452452
</div>
453453
</Heading>

apps/dashboard/src/components/hackathon/HacakthonEarnFooter.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Flex, Icon } from "@chakra-ui/react";
22
import { ChakraNextImage } from "components/Image";
33
import { useTrack } from "hooks/analytics/useTrack";
4-
import { Wand } from "lucide-react";
4+
import { WandIcon } from "lucide-react";
55
import { FiSearch } from "react-icons/fi";
66
import { Heading, LinkButton } from "tw-components";
77

@@ -60,7 +60,7 @@ export const HackathonEarnFooter = ({
6060
h="68px"
6161
w={{ base: "90%", md: 80 }}
6262
fontSize="20px"
63-
leftIcon={<Wand />}
63+
leftIcon={<WandIcon className="size-6" />}
6464
color="black"
6565
flexShrink={0}
6666
background="rgba(255,255,255,1)"

apps/dashboard/src/components/hackathon/HackathonFooter.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Flex, Icon } from "@chakra-ui/react";
22
import { ChakraNextImage } from "components/Image";
33
import { useTrack } from "hooks/analytics/useTrack";
4-
import { Wand } from "lucide-react";
4+
import { WandIcon } from "lucide-react";
55
import { FiSearch } from "react-icons/fi";
66
import { Heading, LinkButton } from "tw-components";
77

@@ -56,7 +56,7 @@ export const HackathonFooter = ({
5656
h="68px"
5757
w={{ base: "90%", md: 80 }}
5858
fontSize="20px"
59-
leftIcon={<Wand />}
59+
leftIcon={<WandIcon className="size-6" />}
6060
color="black"
6161
flexShrink={0}
6262
background="rgba(255,255,255,1)"

apps/dashboard/src/components/hackathon/common/ScheduleSection.tsx

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Flex, LinkBox, LinkOverlay } from "@chakra-ui/react";
22
import { useTrack } from "hooks/analytics/useTrack";
3-
import { MoveRight } from "lucide-react";
3+
import { MoveRightIcon } from "lucide-react";
44
import { Badge, Heading, LinkButton, Text } from "tw-components";
55

66
interface ScheduleItem {
@@ -108,10 +108,7 @@ export const ScheduleSection: React.FC<ScheduleSectionProps> = ({
108108
</Flex>
109109
</LinkOverlay>
110110
</Flex>
111-
<MoveRight
112-
size={16}
113-
className="ml-auto hidden text-gray-300 md:block"
114-
/>
111+
<MoveRightIcon className="ml-auto hidden size-4 text-gray-300 md:block" />
115112
</Flex>
116113
))}
117114
</Flex>

apps/dashboard/src/components/homepage/CodeBlock/index.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import {
99
useTheme,
1010
} from "@chakra-ui/react";
1111
import { useClipboard } from "hooks/useClipboard";
12-
import { Check, Copy } from "lucide-react";
12+
import { CheckIcon, CopyIcon } from "lucide-react";
1313
import { Highlight, themes } from "prism-react-renderer";
1414
import { useEffect, useRef, useState } from "react";
1515
import { BsLightning } from "react-icons/bs";
@@ -162,9 +162,9 @@ export const HomePageCodeBlock: React.FC<CodeBlockProps> = ({
162162
size="sm"
163163
icon={
164164
hasCopied ? (
165-
<Check className="text-green-500" size={14} />
165+
<CheckIcon className="size-4 text-green-500" />
166166
) : (
167-
<Copy size={14} />
167+
<CopyIcon className="size-4" />
168168
)
169169
}
170170
/>

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

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import {
22
Flex,
33
type FlexProps,
4-
Icon,
54
IconButton,
65
ListItem,
76
UnorderedList,
@@ -106,17 +105,15 @@ const MobileNavSection: React.FC<MobileNavSectionProps> = ({
106105
size="label.md"
107106
onClick={onItemClick}
108107
>
109-
{link.icon ? (
108+
{link.icon && (
110109
<ChakraNextImage
111110
alt=""
112111
boxSize={5}
113112
src={link.icon}
114113
sizes="40px"
115114
w={5}
116115
/>
117-
) : link.iconType ? (
118-
<Icon as={link.iconType} h={4} w={5} />
119-
) : null}
116+
)}
120117
{link.name}
121118
</Heading>
122119
</ListItem>

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/components/shared/FileInput.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import { Button } from "@/components/ui/button";
33
import { cn } from "@/lib/utils";
44
import { useImageFileOrUrl } from "hooks/useImageFileOrUrl";
5-
import { Eye, FilePlus } from "lucide-react";
5+
import { EyeIcon, FilePlusIcon } from "lucide-react";
66
import Link from "next/link";
77
import { useCallback } from "react";
88
import {
@@ -181,13 +181,14 @@ export const FileInput: React.FC<IFileInputProps> = ({
181181
disabled={isDisabled}
182182
className="gap-2"
183183
>
184-
<FilePlus size={16} /> {selectOrUpload} {helperTextOrFile}
184+
<FilePlusIcon className="size-4" /> {selectOrUpload}{" "}
185+
{helperTextOrFile}
185186
</Button>
186187
)}
187188
{noDisplay && (
188189
<Link href={fileUrl} target="_blank" className="no-underline">
189190
<Button variant="outline" className="gap-2">
190-
<Eye size={16} />
191+
<EyeIcon className="size-4" />
191192
View File
192193
</Button>
193194
</Link>

apps/dashboard/src/contract-ui/tabs/embed/components/embed-setup.tsx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import {
1212
import { useTrack } from "hooks/analytics/useTrack";
1313
import { useClipboard } from "hooks/useClipboard";
1414
import { useTxNotifications } from "hooks/useTxNotifications";
15-
import { Check, Copy } from "lucide-react";
15+
import { CheckIcon, CopyIcon } from "lucide-react";
1616
import { useMemo } from "react";
1717
import { useForm } from "react-hook-form";
1818
import type { ThirdwebContract } from "thirdweb";
@@ -566,7 +566,13 @@ export const EmbedSetup: React.FC<EmbedSetupProps> = ({
566566
chainId,
567567
});
568568
}}
569-
leftIcon={hasCopied ? <Check size={14} /> : <Copy size={14} />}
569+
leftIcon={
570+
hasCopied ? (
571+
<CheckIcon className="size-4" />
572+
) : (
573+
<CopyIcon className="size-4" />
574+
)
575+
}
570576
>
571577
{hasCopied ? "Copied!" : "Copy to clipboard"}
572578
</Button>

0 commit comments

Comments
 (0)