Skip to content

Commit 6f2ff32

Browse files
committed
minor updates
1 parent 785cc56 commit 6f2ff32

File tree

2 files changed

+27
-18
lines changed

2 files changed

+27
-18
lines changed

apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/assets/create/nft/upload-nfts/batch-upload/batch-upload-instructions.tsx

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ export function BatchUploadInstructions() {
3131
<Section title="Uploading Files">
3232
<p>
3333
Make sure to drag and drop the {tab === "csv" ? "CSV" : "JSON"} and
34-
the assets <strong>at the same time</strong> or upload a folder with
35-
all the files in it.
34+
the assets at the same time or upload a folder with all the files in
35+
it.
3636
</p>
3737

3838
<p>
@@ -52,12 +52,12 @@ export function BatchUploadInstructions() {
5252
<p>
5353
The {tab === "csv" ? "CSV" : "JSON"} file must have a{" "}
5454
<InlineCode code="name" /> {tab === "csv" ? "column" : "property"},
55-
which defines the name of the NFT. Other{" "}
56-
{tab === "csv" ? "columns" : "properties"} are optional.
55+
which defines the name of the NFT
5756
</p>
5857

5958
<p>
60-
You can also add the optional <InlineCode code="description" />,{" "}
59+
Other optional {tab === "csv" ? "columns" : "properties"} are{" "}
60+
<InlineCode code="description" />,{" "}
6161
<InlineCode code="background_color" />,{" "}
6262
<InlineCode code="external_url" />,{" "}
6363
<InlineCode code="animation_url" />,{" "}
@@ -69,10 +69,10 @@ export function BatchUploadInstructions() {
6969
<InlineCode code="attributes" />
7070
</>
7171
)}{" "}
72-
and <InlineCode code="supply" />{" "}
73-
{tab === "csv" ? "columns" : "properties"}.{" "}
72+
and <InlineCode code="supply" />
73+
{". "}
7474
{tab === "csv" &&
75-
"All other columns will be treated as Attributes. For example: See 'foo', 'bar' and 'bazz' below"}
75+
"All other columns will be treated as Attributes. For example: See 'foo', 'bar' and 'bazz' below."}
7676
</p>
7777

7878
<ExampleCode
@@ -86,10 +86,10 @@ export function BatchUploadInstructions() {
8686

8787
<Section title="Map your assets to NFTs">
8888
<p>
89-
If you want to make your media files map to your NFTs, you can add
90-
the name of your files to the <InlineCode code="image" /> and
89+
If you want to map your media files to your NFTs, you can add the
90+
name of your files to the <InlineCode code="image" /> and{" "}
9191
<InlineCode code="animation_url" />{" "}
92-
{tab === "csv" ? "column" : "property"}.{" "}
92+
{tab === "csv" ? "columns" : "properties"}.{" "}
9393
<ExampleCode
9494
code={
9595
tab === "csv"
@@ -108,12 +108,14 @@ export function BatchUploadInstructions() {
108108

109109
<Section title="Using asset links instead of uploading assets">
110110
<p>
111-
When uploading files, we will upload them and pin them to IPFS
112-
automatically for you. If you already have the files uploaded, you
113-
can add an <InlineCode code="image" /> and/or
111+
When uploading files, assets will be uploaded and pinned to IPFS
112+
automatically. If you already have the files uploaded elsewhere, you
113+
can specify the IPFS or HTTP(s) links in the{" "}
114+
<InlineCode code="image" /> and/or{" "}
114115
<InlineCode code="animation_url" />{" "}
115-
{tab === "csv" ? "column" : "property"} and add the IPFS or HTTP(s)
116-
links.{" "}
116+
{tab === "csv" ? "columns" : "properties"}. instead of uploading the
117+
assets and just upload a single {tab === "csv" ? "CSV" : "JSON"}{" "}
118+
file.
117119
<ExampleCode
118120
code={
119121
tab === "csv"

apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/assets/create/nft/upload-nfts/single-upload/single-upload-nft.tsx

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -302,8 +302,15 @@ export function SingleUploadNFT(props: {
302302
</Badge>
303303
</FormLabel>
304304
<FormControl>
305-
{/* # + 6 */}
306-
<Input maxLength={7} {...field} />
305+
<div className="relative">
306+
<Input maxLength={7} {...field} />
307+
<div
308+
className="-translate-y-1/2 absolute top-1/2 right-4 size-5 rounded-full"
309+
style={{
310+
backgroundColor: field.value,
311+
}}
312+
/>
313+
</div>
307314
</FormControl>
308315
<FormDescription>
309316
Must be a six-character hexadecimal with a pre-pended #.

0 commit comments

Comments
 (0)