Skip to content

Commit f11d3bf

Browse files
committed
[Dashboard] Remove some chakra icons, adjust IpfsUploadButton
1 parent 687a733 commit f11d3bf

File tree

5 files changed

+7
-13
lines changed

5 files changed

+7
-13
lines changed

apps/dashboard/src/components/connect/ConnectPlaygroundButton.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { Icon } from "@chakra-ui/react";
21
import { JavaScriptIcon } from "components/icons/brand-icons/JavaScriptIcon";
32
import { ReactIcon } from "components/icons/brand-icons/ReactIcon";
43
import { UnityIcon } from "components/icons/brand-icons/UnityIcon";
@@ -48,7 +47,7 @@ const ConnectPlaygroundButton = ({
4847

4948
return (
5049
<Button
51-
leftIcon={<Icon as={logo.icon} fill={logo.fill} />}
50+
leftIcon={<logo.icon className="size-4" fill={logo.fill} />}
5251
border="1px solid transparent"
5352
variant="solid"
5453
fontWeight="normal"

apps/dashboard/src/components/ipfs-upload/button.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
import { Icon } from "@chakra-ui/react";
21
import type { UseMutationResult } from "@tanstack/react-query";
32
import { FileInput } from "components/shared/FileInput";
43
import { useErrorHandler } from "contexts/error-handler";
5-
import { FiUpload } from "react-icons/fi";
4+
import { UploadIcon } from "lucide-react";
65
import { Button, type ButtonProps } from "tw-components";
76
import type { ComponentWithChildren } from "types/component-with-children";
87

@@ -32,7 +31,7 @@ export const IpfsUploadButton: ComponentWithChildren<IpfsUploadButtonProps> = ({
3231
size="sm"
3332
variant="solid"
3433
aria-label="Upload to IPFS"
35-
rightIcon={<Icon as={FiUpload} />}
34+
rightIcon={<UploadIcon className="size-4" />}
3635
isLoading={storageUpload.isPending}
3736
{...buttonProps}
3837
>

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { Icon } from "@chakra-ui/react";
21
import { JavaScriptIcon } from "components/icons/brand-icons/JavaScriptIcon";
32
import { ReactIcon } from "components/icons/brand-icons/ReactIcon";
43
import { UnityIcon } from "components/icons/brand-icons/UnityIcon";
@@ -48,7 +47,7 @@ export const CodeOptionButton: React.FC<CodeOptionButtonProps> = ({
4847

4948
return (
5049
<Button
51-
leftIcon={<Icon as={logo.icon} fill={logo.fill} />}
50+
leftIcon={<logo.icon className="size-4" fill={logo.fill} />}
5251
border="1px solid transparent"
5352
variant="solid"
5453
fontWeight="normal"

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

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
import { Icon } from "@chakra-ui/react";
21
import { useTrack } from "hooks/analytics/useTrack";
3-
import { BsFillLightningChargeFill } from "react-icons/bs";
2+
import { ZapIcon } from "lucide-react";
43
import {
54
type ButtonProps,
65
LinkButton,
@@ -24,9 +23,7 @@ export const ProductButton: React.FC<GeneralCtaProps> = ({
2423

2524
return (
2625
<LinkButton
27-
leftIcon={
28-
<Icon as={BsFillLightningChargeFill} color={iconColor} boxSize={4} />
29-
}
26+
leftIcon={<ZapIcon className="size-4 fill-black" />}
3027
w="full"
3128
py="24px"
3229
onClick={() =>

apps/dashboard/src/contract-ui/components/solidity-inputs/string-input.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export const SolidityStringInput: React.FC<SolidityInputWithTypeProps> = ({
4040
onChange={handleChange}
4141
/>
4242
{showButton && (
43-
<InputRightElement mx={1} width={{ base: "75px", md: "145px" }}>
43+
<InputRightElement mx={1} width={{ base: "75px", md: "160px" }}>
4444
<IpfsUploadButton
4545
onUpload={(uri) => {
4646
if (functionName) {

0 commit comments

Comments
 (0)