Skip to content

Commit b937029

Browse files
committed
Update
1 parent 514647c commit b937029

File tree

13 files changed

+75
-93
lines changed

13 files changed

+75
-93
lines changed

apps/dashboard/src/app/(dashboard)/tools/transaction-simulator/components/TransactionSimulator.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,9 @@ import { ToolTipLabel } from "@/components/ui/tooltip";
1212
import { useThirdwebClient } from "@/constants/thirdweb.client";
1313
import type { Abi, AbiFunction } from "abitype";
1414
import { useV5DashboardChain } from "lib/v5-adapter";
15-
import { ArrowDown } from "lucide-react";
15+
import { ArrowDown, WalletIcon } from "lucide-react";
1616
import { useState } from "react";
1717
import { useForm } from "react-hook-form";
18-
import { MdOutlineAccountBalanceWallet } from "react-icons/md";
1918
import {
2019
getContract,
2120
prepareContractCall,
@@ -201,7 +200,7 @@ ${Object.keys(populatedTransaction)
201200
size="icon"
202201
onClick={() => form.setValue("from", activeAccount.address)}
203202
>
204-
<MdOutlineAccountBalanceWallet />
203+
<WalletIcon className="size-4" />
205204
</Button>
206205
</ToolTipLabel>
207206
)}

apps/dashboard/src/components/color-mode/color-mode-toggle.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
import { Button } from "@/components/ui/button";
44
import { SkeletonContainer } from "@/components/ui/skeleton";
5+
import { MoonIcon, SunIcon } from "lucide-react";
56
import { useTheme } from "next-themes";
6-
import { FiMoon, FiSun } from "react-icons/fi";
77
import { useIsClientMounted } from "../ClientOnly/ClientOnly";
88

99
export const ColorModeToggle: React.FC = () => {
@@ -29,9 +29,9 @@ export const ColorModeToggle: React.FC = () => {
2929
onClick={() => setTheme(theme === "light" ? "dark" : "light")}
3030
>
3131
{v === "dark" ? (
32-
<FiMoon className="size-5" />
32+
<MoonIcon className="size-5" />
3333
) : (
34-
<FiSun className="size-5" />
34+
<SunIcon className="size-5" />
3535
)}
3636
</Button>
3737
);

apps/dashboard/src/components/contract-components/contract-publish-form/index.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,17 @@ import { useDashboardRouter } from "@/lib/DashboardRouter";
44
import { useIsomorphicLayoutEffect } from "@/lib/useIsomorphicLayoutEffect";
55
import { CustomConnectWallet } from "@3rdweb-sdk/react/components/connect-wallet";
66
import { useLoggedInUser } from "@3rdweb-sdk/react/hooks/useLoggedInUser";
7-
import { Box, Divider, Flex, Icon, IconButton } from "@chakra-ui/react";
7+
import { Box, Divider, Flex, IconButton } from "@chakra-ui/react";
88
import type { Abi } from "abitype";
99
import {
1010
DASHBOARD_ENGINE_RELAYER_URL,
1111
DASHBOARD_FORWARDER_ADDRESS,
1212
} from "constants/misc";
1313
import { useTrack } from "hooks/analytics/useTrack";
1414
import { useTxNotifications } from "hooks/useTxNotifications";
15+
import { ChevronFirstIcon } from "lucide-react";
1516
import { useMemo, useState } from "react";
1617
import { FormProvider, useForm } from "react-hook-form";
17-
import { IoChevronBack } from "react-icons/io5";
1818
import type { FetchDeployMetadataResult } from "thirdweb/contract";
1919
import {
2020
getContractPublisher,
@@ -312,7 +312,7 @@ export function ContractPublishForm(props: {
312312
: setFieldsetToShow("landing")
313313
}
314314
aria-label="Back"
315-
icon={<Icon as={IoChevronBack} boxSize={6} />}
315+
icon={<ChevronFirstIcon className="size-6" />}
316316
>
317317
Back
318318
</IconButton>

apps/dashboard/src/contract-ui/tabs/permissions/components/permissions-editor.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,11 @@ import {
1515
} from "@chakra-ui/react";
1616
import { DelayedDisplay } from "components/delayed-display/delayed-display";
1717
import { useClipboard } from "hooks/useClipboard";
18+
import { PlusIcon } from "lucide-react";
1819
import { useState } from "react";
1920
import { useFieldArray, useFormContext } from "react-hook-form";
2021
import { BiPaste } from "react-icons/bi";
21-
import { FiCopy, FiInfo, FiPlus, FiTrash } from "react-icons/fi";
22+
import { FiCopy, FiInfo, FiTrash } from "react-icons/fi";
2223
import { toast } from "sonner";
2324
import { type ThirdwebContract, ZERO_ADDRESS, isAddress } from "thirdweb";
2425
import { Button, FormErrorMessage, Text } from "tw-components";
@@ -119,7 +120,7 @@ export const PermissionEditor: React.FC<PermissionEditorProps> = ({
119120
/>
120121
<InputRightAddon p={0} border="none">
121122
<Button
122-
leftIcon={<Icon as={FiPlus} boxSize={4} />}
123+
leftIcon={<PlusIcon className="size-4" />}
123124
size="sm"
124125
borderLeftRadius="none"
125126
borderRightRadius="md"

apps/dashboard/src/contract-ui/tabs/settings/components/metadata.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import { AdminOnly } from "@3rdweb-sdk/react/components/roles/admin-only";
44
import {
55
Flex,
66
FormControl,
7-
Icon,
87
IconButton,
98
Input,
109
Textarea,
@@ -17,10 +16,9 @@ import { CommonContractSchema } from "constants/schemas";
1716
import { useTrack } from "hooks/analytics/useTrack";
1817
import { useImageFileOrUrl } from "hooks/useImageFileOrUrl";
1918
import { useTxNotifications } from "hooks/useTxNotifications";
20-
import { PlusIcon } from "lucide-react";
19+
import { PlusIcon, Trash2Icon } from "lucide-react";
2120
import { useMemo } from "react";
2221
import { useFieldArray, useForm } from "react-hook-form";
23-
import { FiTrash } from "react-icons/fi";
2422
import type { ThirdwebContract } from "thirdweb";
2523
import {
2624
getContractMetadata,
@@ -303,7 +301,7 @@ export const SettingsMetadata = ({
303301
isDisabled={
304302
metadata.isPending || sendTransaction.isPending
305303
}
306-
icon={<Icon as={FiTrash} boxSize={5} />}
304+
icon={<Trash2Icon className="size-5" />}
307305
aria-label="Remove row"
308306
onClick={() => remove(index)}
309307
/>

apps/dashboard/src/contract-ui/tabs/shared-components/marketplace-table.tsx

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import { WalletAddress } from "@/components/blocks/wallet-address";
22
import {
33
ButtonGroup,
44
Flex,
5-
Icon,
65
IconButton,
76
Select,
87
Skeleton,
@@ -19,20 +18,20 @@ import {
1918
import type { UseQueryResult } from "@tanstack/react-query";
2019
import { MediaCell } from "components/contract-pages/table/table-columns/cells/media-cell";
2120
import { ListingDrawer } from "contract-ui/tabs/shared-components/listing-drawer";
21+
import {
22+
ChevronFirstIcon,
23+
ChevronLastIcon,
24+
ChevronLeftIcon,
25+
ChevronRightIcon,
26+
MoveRightIcon,
27+
} from "lucide-react";
2228
import {
2329
type Dispatch,
2430
type SetStateAction,
2531
useEffect,
2632
useMemo,
2733
useState,
2834
} from "react";
29-
import { FiArrowRight } from "react-icons/fi";
30-
import {
31-
MdFirstPage,
32-
MdLastPage,
33-
MdNavigateBefore,
34-
MdNavigateNext,
35-
} from "react-icons/md";
3635
import { type Cell, type Column, usePagination, useTable } from "react-table";
3736
import type { ThirdwebContract } from "thirdweb";
3837
import type {
@@ -268,7 +267,7 @@ export const MarketplaceTable: React.FC<MarketplaceTableProps> = ({
268267
</Td>
269268
))}
270269
<Td borderBottomWidth="inherit" borderColor="borderColor">
271-
<Icon as={FiArrowRight} />
270+
<MoveRightIcon className="size-3" />
272271
</Td>
273272
</Tr>
274273
);
@@ -281,13 +280,13 @@ export const MarketplaceTable: React.FC<MarketplaceTableProps> = ({
281280
<IconButton
282281
isDisabled={!canPreviousPage || totalCountQuery.isPending}
283282
aria-label="first page"
284-
icon={<Icon as={MdFirstPage} />}
283+
icon={<ChevronFirstIcon className="size-4" />}
285284
onClick={() => gotoPage(0)}
286285
/>
287286
<IconButton
288287
isDisabled={!canPreviousPage || totalCountQuery.isPending}
289288
aria-label="previous page"
290-
icon={<Icon as={MdNavigateBefore} />}
289+
icon={<ChevronLeftIcon className="size-4" />}
291290
onClick={() => previousPage()}
292291
/>
293292
<Text whiteSpace="nowrap">
@@ -303,13 +302,13 @@ export const MarketplaceTable: React.FC<MarketplaceTableProps> = ({
303302
<IconButton
304303
isDisabled={!canNextPage || totalCountQuery.isPending}
305304
aria-label="next page"
306-
icon={<Icon as={MdNavigateNext} />}
305+
icon={<ChevronRightIcon className="size-4" />}
307306
onClick={() => nextPage()}
308307
/>
309308
<IconButton
310309
isDisabled={!canNextPage || totalCountQuery.isPending}
311310
aria-label="last page"
312-
icon={<Icon as={MdLastPage} />}
311+
icon={<ChevronLastIcon className="size-4" />}
313312
onClick={() => gotoPage(pageCount - 1)}
314313
/>
315314

apps/dashboard/src/contract-ui/tabs/tokens/components/airdrop-upload-erc20.tsx

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ import {
1616
} from "@chakra-ui/react";
1717
import { useQueries } from "@tanstack/react-query";
1818
import {
19-
ChevronFirst,
20-
ChevronLast,
21-
ChevronLeft,
22-
ChevronRight,
19+
ChevronFirstIcon,
20+
ChevronLastIcon,
21+
ChevronLeftIcon,
22+
ChevronRightIcon,
2323
CircleAlert,
2424
UploadIcon,
2525
} from "lucide-react";
@@ -395,36 +395,36 @@ const AirdropTable: React.FC<AirdropTableProps> = ({ data, portalRef }) => {
395395
</Tbody>
396396
</Table>
397397
{/* Only need to show the Pagination components if we have more than 25 records */}
398-
{data.length > 25 && (
398+
{data.length > 0 && (
399399
<Portal containerRef={portalRef}>
400400
<div className="flex w-full items-center justify-center">
401-
<div className="flex flex-row">
401+
<div className="flex flex-row gap-1">
402402
<IconButton
403403
isDisabled={!canPreviousPage}
404404
aria-label="first page"
405-
icon={<ChevronFirst size={16} />}
405+
icon={<ChevronFirstIcon className="size-4" />}
406406
onClick={() => gotoPage(0)}
407407
/>
408408
<IconButton
409409
isDisabled={!canPreviousPage}
410410
aria-label="previous page"
411-
icon={<ChevronLeft size={16} />}
411+
icon={<ChevronLeftIcon className="size-4" />}
412412
onClick={() => previousPage()}
413413
/>
414-
<Text whiteSpace="nowrap">
414+
<p className="my-auto whitespace-nowrap">
415415
Page <strong>{pageIndex + 1}</strong> of{" "}
416416
<strong>{pageOptions.length}</strong>
417-
</Text>
417+
</p>
418418
<IconButton
419419
isDisabled={!canNextPage}
420420
aria-label="next page"
421-
icon={<ChevronRight size={16} />}
421+
icon={<ChevronRightIcon className="size-4" />}
422422
onClick={() => nextPage()}
423423
/>
424424
<IconButton
425425
isDisabled={!canNextPage}
426426
aria-label="last page"
427-
icon={<ChevronLast size={16} />}
427+
icon={<ChevronLastIcon className="size-4" />}
428428
onClick={() => gotoPage(pageCount - 1)}
429429
/>
430430
<Select

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

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import {
77
Container,
88
Flex,
99
FormControl,
10-
Icon,
1110
Input,
1211
InputGroup,
1312
InputRightElement,
@@ -17,11 +16,10 @@ import { zodResolver } from "@hookform/resolvers/zod";
1716
import { TransactionButton } from "components/buttons/TransactionButton";
1817
import { FileInput } from "components/shared/FileInput";
1918
import { useImageFileOrUrl } from "hooks/useImageFileOrUrl";
20-
import { EyeIcon, EyeOffIcon } from "lucide-react";
19+
import { ChevronLeftIcon, EyeIcon, EyeOffIcon } from "lucide-react";
2120
import { useRef, useState } from "react";
2221
import { useDropzone } from "react-dropzone";
2322
import { useForm } from "react-hook-form";
24-
import { IoChevronBack } from "react-icons/io5";
2523
import type { CreateDelayedRevealBatchParams } from "thirdweb/extensions/erc721";
2624
import type { NFTInput } from "thirdweb/utils";
2725
import {
@@ -269,14 +267,14 @@ export const BatchLazyMint: ComponentWithChildren<BatchLazyMintProps> = (
269267
mb={2}
270268
>
271269
<div className="flex flex-row">
272-
<Icon
273-
boxSize={5}
274-
as={IoChevronBack}
275-
color="gray.600"
270+
<Button
271+
className="text-muted-foreground"
272+
variant="ghost"
276273
onClick={() => setStep(0)}
277-
cursor="pointer"
278-
/>
279-
<Heading size="title.md">
274+
>
275+
<ChevronLeftIcon className="size-5 cursor-pointer" />
276+
</Button>
277+
<Heading size="title.md" className="my-auto">
280278
When will you reveal your NFTs?
281279
</Heading>
282280
</div>

apps/dashboard/src/core-ui/batch-upload/batch-table.tsx

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import {
33
Box,
44
type BoxProps,
55
Flex,
6-
Icon,
76
IconButton,
87
Image,
98
type ImageProps,
@@ -19,13 +18,13 @@ import {
1918
} from "@chakra-ui/react";
2019
import { useImageFileOrUrl } from "hooks/useImageFileOrUrl";
2120
import { replaceIpfsUrl } from "lib/sdk";
22-
import { useMemo } from "react";
2321
import {
24-
MdFirstPage,
25-
MdLastPage,
26-
MdNavigateBefore,
27-
MdNavigateNext,
28-
} from "react-icons/md";
22+
ChevronFirstIcon,
23+
ChevronLastIcon,
24+
ChevronLeftIcon,
25+
ChevronRightIcon,
26+
} from "lucide-react";
27+
import { useMemo } from "react";
2928
import { type Column, usePagination, useTable } from "react-table";
3029
import type { NFTInput } from "thirdweb/utils";
3130
import { CodeBlock, Text } from "tw-components";
@@ -219,13 +218,13 @@ export const BatchTable: React.FC<BatchTableProps> = ({
219218
<IconButton
220219
isDisabled={!canPreviousPage}
221220
aria-label="first page"
222-
icon={<Icon as={MdFirstPage} />}
221+
icon={<ChevronFirstIcon className="size-4" />}
223222
onClick={() => gotoPage(0)}
224223
/>
225224
<IconButton
226225
isDisabled={!canPreviousPage}
227226
aria-label="previous page"
228-
icon={<Icon as={MdNavigateBefore} />}
227+
icon={<ChevronLeftIcon className="size-4" />}
229228
onClick={() => previousPage()}
230229
/>
231230
<Text whiteSpace="nowrap">
@@ -235,13 +234,13 @@ export const BatchTable: React.FC<BatchTableProps> = ({
235234
<IconButton
236235
isDisabled={!canNextPage}
237236
aria-label="next page"
238-
icon={<Icon as={MdNavigateNext} />}
237+
icon={<ChevronRightIcon className="size-4" />}
239238
onClick={() => nextPage()}
240239
/>
241240
<IconButton
242241
isDisabled={!canNextPage}
243242
aria-label="last page"
244-
icon={<Icon as={MdLastPage} />}
243+
icon={<ChevronLastIcon className="size-4" />}
245244
onClick={() => gotoPage(pageCount - 1)}
246245
/>
247246

apps/dashboard/src/pages/contact-us.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import {
44
Flex,
55
type FlexProps,
66
FormControl,
7-
Icon,
87
Image,
98
Input,
109
List,
@@ -16,10 +15,10 @@ import { PartnerLogo } from "components/partners/partner-logo";
1615
import { HomepageTopNav } from "components/product-pages/common/Topnav";
1716
import { HomepageSection } from "components/product-pages/homepage/HomepageSection";
1817
import { useTrack } from "hooks/analytics/useTrack";
18+
import { ZapIcon } from "lucide-react";
1919
import { PageId } from "page-id";
2020
import { useState } from "react";
2121
import { useForm } from "react-hook-form";
22-
import { BsFillLightningChargeFill } from "react-icons/bs";
2322
import { Button, Card, Heading, Text } from "tw-components";
2423
import type { ThirdwebNextPage } from "utils/types";
2524
import type { ContactFormPayload } from "../app/api/contact-us/types";
@@ -336,7 +335,7 @@ const ContactUs: ThirdwebNextPage = () => {
336335
_hover={{ bg: "black", opacity: 0.8 }}
337336
px={8}
338337
py={6}
339-
leftIcon={<Icon as={BsFillLightningChargeFill} />}
338+
leftIcon={<ZapIcon className="size-5" />}
340339
isDisabled={formStatus === "submitting"}
341340
>
342341
<Text color="white" size="label.lg">

0 commit comments

Comments
 (0)