Skip to content

Commit

Permalink
feat : added additional_info in collection
Browse files Browse the repository at this point in the history
  • Loading branch information
surajhub255 committed Oct 10, 2024
1 parent b9d23ea commit ccd7e64
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
29 changes: 29 additions & 0 deletions src/app/create-collection/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ const formSchema = z.object({
// .refine((value) => value.some((item) => item), {
// message: 'You have to select at least one category.',
// }),
additional_info: z
.string()
.min(2, { message: 'Collection Information must be at least 2 characters' }),
})


Expand Down Expand Up @@ -172,6 +175,8 @@ export default function CreateCollection() {
cover_image: '',
chaintype_id: '',
category: [],
additional_info:'',

},
})

Expand Down Expand Up @@ -205,6 +210,7 @@ export default function CreateCollection() {
brand_id: BrandId,
name: values.name,
category: { data: values.category },
additional_info: values.additional_info,
description: values.description,
logo_image: values.logo_image,
cover_image: values.cover_image,
Expand Down Expand Up @@ -459,6 +465,29 @@ export default function CreateCollection() {
)}
/>

<FormField
name='additional_info'
control={form.control}
render={({ field }) => (
<FormItem>
<FormLabel className='text-xl font-semibold mb-4'>
Collection Information for AI *
</FormLabel>
<FormDescription className='text-lg font-semibold'>
Fill this field if you want to create an AI-powered brand ambassador
</FormDescription>
<FormControl>
<Textarea
className='border-0 bg-[#0000001A] text-lg'
placeholder='Give as much information as possible about your collection. Anything you want the AI avatar to know and share with your customers. '
{...field}
/>
</FormControl>
<FormMessage />
</FormItem>
)}
/>

<Button
type='submit'
className='w-fit bg-[#30D8FF] text-black hover:text-white rounded-full'
Expand Down
2 changes: 1 addition & 1 deletion src/app/launch-congratulation/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export default function Congratulations() {
</Link>
<a href={`https://discover.myriadflow.com/nfts/${PhygitalId}`} target="_blank" rel="noopener noreferrer">
<Button className="w-fit bg-[#30D8FF] hover:text-white rounded-full text-black text-2xl">
View On Discover
View the Phygital
</Button>
</a>

Expand Down

0 comments on commit ccd7e64

Please sign in to comment.