Skip to content

Commit

Permalink
Feat/backend integration (#16)
Browse files Browse the repository at this point in the history
* fetching done, pagination and search remaining

* fetching done, pagination and search remaining

* fetching done, pagination and search remaining

* search feature added

* pagination remaining, minor clean up done

* migrated to next 14

* testing with the errors

* pnpm lock added back

* edited

* comment error fixed

* comment error fixed

* stable app done

* important fields ensured

* required removed
  • Loading branch information
codypharm authored Mar 8, 2024
1 parent d117445 commit 7f70ff6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
8 changes: 6 additions & 2 deletions sanity/schemas/post.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,13 +99,17 @@ export default defineType({
name: 'usage',
title: 'Usage',
type: 'blockContent',
validation: (Rule) => Rule.required(),

// validation: (Rule) => Rule.required(),

}),
defineField({
name: 'prompts',
title: 'Prompts',
type: 'blockContent',
validation: (Rule) => Rule.required(),

// validation: (Rule) => Rule.required(),

}),
defineField({
name: 'likes',
Expand Down
6 changes: 3 additions & 3 deletions src/app/explorer/[slug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -128,15 +128,15 @@ export default function Page({ params }: { params: { slug: string } }) {
</span>
</div>
<div>
<h2 className='mb-4 '>How to use</h2>
{/* <h2 className='mb-4 '>How to use</h2> */}
<div className='flex flex-col gap-4'>
{data?.usage && <PortableText value={data?.usage} components={components} />}
</div>

</div>

<div>
<h2 className='mb-4 '>Prompts to use</h2>
{/* <h2 className='mb-4 '>Prompts to use</h2> */}
<div className='flex flex-col gap-4'>
{data?.prompts && <PortableText value={data?.prompts} components={components} />}
</div>
Expand All @@ -146,7 +146,7 @@ export default function Page({ params }: { params: { slug: string } }) {
</div>

</div>
yy

<div className='mt-10'>
<h1 className='font-logirentBold text-sm font-semibold text-center'>Similar Tools</h1>
<div className='w-full py-10'>
Expand Down

0 comments on commit 7f70ff6

Please sign in to comment.