fix(mod): field duplication and focus issue

This commit is contained in:
enes 2024-10-17 17:43:46 +02:00
parent 82b4774174
commit 9c580c5ef5

View File

@ -419,7 +419,7 @@ export const ModForm = ({ existingModData }: ModFormProps) => {
We recommend to upload images to https://nostr.build/ We recommend to upload images to https://nostr.build/
</p> </p>
{formState.screenshotsUrls.map((url, index) => ( {formState.screenshotsUrls.map((url, index) => (
<Fragment key={`screenShot-${url}`}> <Fragment key={`screenShot-${index}`}>
<ScreenshotUrlFields <ScreenshotUrlFields
index={index} index={index}
url={url} url={url}
@ -468,12 +468,12 @@ export const ModForm = ({ existingModData }: ModFormProps) => {
</div> </div>
<p className='labelDescriptionMain'> <p className='labelDescriptionMain'>
You can upload your game mod to Github, as an example, and keep You can upload your game mod to Github, as an example, and keep
updating it there (another option is catbox.moe). Also, it's advisable that you hash your package as updating it there (another option is catbox.moe). Also, it's advisable
well with your nostr public key. that you hash your package as well with your nostr public key.
</p> </p>
{formState.downloadUrls.map((download, index) => ( {formState.downloadUrls.map((download, index) => (
<Fragment key={`download-${download.url}`}> <Fragment key={`download-${index}`}>
<DownloadUrlFields <DownloadUrlFields
index={index} index={index}
url={download.url} url={download.url}