From 0dfefeb3a6057ff44c64119b656492debf72901e Mon Sep 17 00:00:00 2001 From: Kien Ngo Date: Tue, 24 Sep 2024 22:01:32 +0700 Subject: [PATCH] Remove component` --- .../src/components/chain-validation/index.tsx | 7 +++---- .../components/engine/configuration/cors.tsx | 4 ++-- .../engine/configuration/ip-allowlist.tsx | 4 ++-- .../permissions/engine-access-tokens.tsx | 6 +++--- .../components/snapshot-upload.tsx | 13 ++++++------- .../src/contract-ui/tabs/permissions/page.tsx | 4 ++-- .../src/core-ui/batch-upload/upload-step.tsx | 19 +++++++++---------- 7 files changed, 27 insertions(+), 30 deletions(-) diff --git a/apps/dashboard/src/components/chain-validation/index.tsx b/apps/dashboard/src/components/chain-validation/index.tsx index 28304a19490..8cf74d31606 100644 --- a/apps/dashboard/src/components/chain-validation/index.tsx +++ b/apps/dashboard/src/components/chain-validation/index.tsx @@ -1,5 +1,4 @@ import { - Code, FormControl, Icon, Input, @@ -104,7 +103,7 @@ const ChainValidation: React.FC = () => { <> - RPC supports eth_chainId method + RPC supports eth_chainId method { - RPC supports eth_blockNumber method + RPC supports eth_blockNumber method { Chain ID{" "} {existingChain?.id ? ( - {existingChain.id} + {existingChain.id} ) : ( "" )} diff --git a/apps/dashboard/src/components/engine/configuration/cors.tsx b/apps/dashboard/src/components/engine/configuration/cors.tsx index e06d07ffd7c..46e6c972a93 100644 --- a/apps/dashboard/src/components/engine/configuration/cors.tsx +++ b/apps/dashboard/src/components/engine/configuration/cors.tsx @@ -2,7 +2,7 @@ import { useEngineCorsConfiguration, useEngineSetCorsConfiguration, } from "@3rdweb-sdk/react/hooks/useEngine"; -import { Code, Flex, Textarea } from "@chakra-ui/react"; +import { Flex, Textarea } from "@chakra-ui/react"; import { useTxNotifications } from "hooks/useTxNotifications"; import { useForm } from "react-hook-form"; import { Button, Heading, Text } from "tw-components"; @@ -55,7 +55,7 @@ export const EngineCorsConfig: React.FC = ({ Allowlisted Domains Specify the origins that can call Engine ( - https://example.com). + https://example.com).
Enter one origin per line, or leave this list empty to disallow calls from web clients. diff --git a/apps/dashboard/src/components/engine/configuration/ip-allowlist.tsx b/apps/dashboard/src/components/engine/configuration/ip-allowlist.tsx index d9713ec93ac..9db6929aed8 100644 --- a/apps/dashboard/src/components/engine/configuration/ip-allowlist.tsx +++ b/apps/dashboard/src/components/engine/configuration/ip-allowlist.tsx @@ -3,7 +3,7 @@ import { useEngineSetIpAllowlistConfiguration, useEngineSystemHealth, } from "@3rdweb-sdk/react/hooks/useEngine"; -import { Code, Flex, Textarea } from "@chakra-ui/react"; +import { Flex, Textarea } from "@chakra-ui/react"; import { useTxNotifications } from "hooks/useTxNotifications"; import { isValid } from "ipaddr.js"; import { useForm } from "react-hook-form"; @@ -74,7 +74,7 @@ export const EngineIpAllowlistConfig: React.FC< Allowlist IPs - Specify the IP Addresses that can call Engine (8.8.8.8). + Specify the IP Addresses that can call Engine (8.8.8.8).
Enter a comma separated list of IPs, or one IP per line, or leave this list empty to allow all IPs. diff --git a/apps/dashboard/src/components/engine/permissions/engine-access-tokens.tsx b/apps/dashboard/src/components/engine/permissions/engine-access-tokens.tsx index 76735ab9299..bbf2416877e 100644 --- a/apps/dashboard/src/components/engine/permissions/engine-access-tokens.tsx +++ b/apps/dashboard/src/components/engine/permissions/engine-access-tokens.tsx @@ -5,7 +5,7 @@ import { useEngineKeypairs, useEngineSystemHealth, } from "@3rdweb-sdk/react/hooks/useEngine"; -import { ButtonGroup, Code, Flex } from "@chakra-ui/react"; +import { ButtonGroup, Flex } from "@chakra-ui/react"; import { useState } from "react"; import { Button, CodeBlock, Heading, Link, Text } from "tw-components"; import { AccessTokensTable } from "./access-tokens-table"; @@ -104,7 +104,7 @@ const StandardAccessTokensPanel = ({ Authenticate with your access token - Set the authorization header. + Set the authorization header. Authenticate with your access token - Set the authorization header. + Set the authorization header. = ({ <> Files must contain one .csv file with a list - of addresses and their maxClaimable. + of addresses and their maxClaimable. (amount each wallet is allowed to claim)
= ({
- You may optionally add price and{" "} - currencyAddress overrides as well. This + You may optionally add price and + currencyAddress overrides as well. This lets you override the currency and price you would like to charge per wallet you specified
@@ -307,7 +306,7 @@ export const SnapshotUpload: React.FC = ({
- You may optionally add a maxClaimable{" "} + You may optionally add a maxClaimable column override. (amount each wallet is allowed to claim) If not specified, the default value is the one you have set on your claim phase. @@ -322,8 +321,8 @@ export const SnapshotUpload: React.FC = ({ - You may optionally add price and{" "} - currencyAddress overrides. This lets you + You may optionally add price and + currencyAddress overrides. This lets you override the currency and price you would like to charge per wallet you specified.{" "} diff --git a/apps/dashboard/src/contract-ui/tabs/permissions/page.tsx b/apps/dashboard/src/contract-ui/tabs/permissions/page.tsx index 60eafd399cb..5348e010376 100644 --- a/apps/dashboard/src/contract-ui/tabs/permissions/page.tsx +++ b/apps/dashboard/src/contract-ui/tabs/permissions/page.tsx @@ -1,7 +1,7 @@ "use client"; import { useIsomorphicLayoutEffect } from "@/lib/useIsomorphicLayoutEffect"; -import { ButtonGroup, Code, Divider, Flex } from "@chakra-ui/react"; +import { ButtonGroup, Divider, Flex } from "@chakra-ui/react"; import { useTabHref } from "contract-ui/utils"; import type { ThirdwebContract } from "thirdweb"; import { Card, Heading, Link, LinkButton, Text } from "tw-components"; @@ -29,7 +29,7 @@ export const ContractPermissionsPage: React.FC< Missing PermissionsEnumerable Extension - This contract does not support the PermissionsEnumerable{" "} + This contract does not support the PermissionsEnumerable extension.
As a result, you can only view and manage basic permissions via the{" "} diff --git a/apps/dashboard/src/core-ui/batch-upload/upload-step.tsx b/apps/dashboard/src/core-ui/batch-upload/upload-step.tsx index 90a639e5a5f..f9f6b8efabb 100644 --- a/apps/dashboard/src/core-ui/batch-upload/upload-step.tsx +++ b/apps/dashboard/src/core-ui/batch-upload/upload-step.tsx @@ -1,6 +1,5 @@ import { cn } from "@/lib/utils"; import { - Code, Container, Flex, Icon, @@ -82,13 +81,13 @@ export const UploadStep: React.FC = ({ . - The csv must have a name column, which + The csv must have a name column, which defines the name of the NFT. Asset names must be sequential 0,1,2,3...n.[extension]. - It doesn't matter at what number you begin. (Example:{" "} - 131.png, 132.png). + It doesn't matter at what number you begin. (Example: + 131.png, 132.png). Make sure to drag and drop the CSV/JSON and the images{" "} @@ -104,23 +103,23 @@ export const UploadStep: React.FC = ({
They both have to follow the asset naming convention above. - (Example: 0.png and 0.mp4,{" "} - 1.png and 1.glb, etc.) + (Example: 0.png and 0.mp4, + 1.png and 1.glb, etc.)
When uploading files, we will upload them and pin them to IPFS automatically for you. If you already have the files uploaded, - you can add an image and/or{" "} - animation_url column and add the IPFS hashes there.{" "} + you can add an image and/or + animation_url column and add the IPFS hashes there. Download example.csv If you want to make your media files map to your NFTs, you can - add add the name of your files to the image and{" "} - animation_url column.{" "} + add add the name of your files to the image and + animation_url column. Download example.csv