You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[TOOL-3453] Dashboard: Fix NFT Metadata issues when adding media URLs instead of uploading (#6288)
=
<!-- start pr-codex -->
---
## PR-Codex overview
This PR focuses on updating the NFT metadata handling in the dashboard application, specifically renaming and refactoring properties related to custom images and animations, improving form handling, and enhancing user interface elements.
### Detailed summary
- Updated documentation link in `next-env.d.ts`.
- Changed `customImage` and `customAnimationUrl` to `image` and `animation_url` in multiple components.
- Updated titles and headers for improved clarity in forms.
- Enhanced form controls with better error handling and user feedback.
- Adjusted layout and spacing in several components for better usability.
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
Copy file name to clipboardExpand all lines: apps/dashboard/src/app/(dashboard)/(chain)/[chain_id]/[contractAddress]/modules/components/BatchMetadata.tsx
Copy file name to clipboardExpand all lines: apps/dashboard/src/app/(dashboard)/(chain)/[chain_id]/[contractAddress]/modules/components/nft/AdvancedNFTMetadataFormGroup.tsx
+12-6Lines changed: 12 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -14,8 +14,8 @@ import type { UseFormReturn } from "react-hook-form";
14
14
importtype{NFTInput}from"thirdweb/utils";
15
15
16
16
typeAdvancedNFTMetadataFormGroupValues={
17
-
customImage?: string;
18
-
customAnimationUrl?: string;
17
+
image?: NFTInput["image"];
18
+
animation_url?: NFTInput["animation_url"];
19
19
background_color?: NFTInput["background_color"];
20
20
external_url?: NFTInput["external_url"];
21
21
};
@@ -56,12 +56,15 @@ export function AdvancedNFTMetadataFormGroup<
Copy file name to clipboardExpand all lines: apps/dashboard/src/app/(dashboard)/(chain)/[chain_id]/[contractAddress]/nfts/[tokenId]/components/update-metadata-form.tsx
Copy file name to clipboardExpand all lines: apps/dashboard/src/app/(dashboard)/(chain)/[chain_id]/[contractAddress]/nfts/[tokenId]/components/update-metadata-tab.tsx
0 commit comments