-
-
Notifications
You must be signed in to change notification settings - Fork 121
Conversation
still not quite working though.
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@subhoghoshX haha ok I made this one into a draft |
@ykdojo I think we can insert questions from front-end, this will simplify quite a lot of stuff. I'll open a PR later today. |
const supabase = createClient(supabaseUrl, supabaseAnonKey); | ||
const supabaseSecret = createClient(supabaseUrl, supabaseServiceKey); | ||
|
||
export default async function handler(req, res) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
export default async function handler(req, res) { | |
export default async function handler(req: NextApiRequest, res: NextApiResponse) { |
Always nice to have :)
@@ -0,0 +1,41 @@ | |||
// Next.js API route support: https://nextjs.org/docs/api-routes/introduction | |||
import { createClient, SupabaseClient } from '@supabase/supabase-js'; | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
import { NextApiRequest, NextApiResponse } from 'next'; |
@@ -97,21 +97,22 @@ const Submit: NextPage<UserProps> = ({ session }) => { | |||
</div> | |||
|
|||
<div className='sm:col-span-3'> | |||
<label htmlFor='recency' className='block text-sm font-medium text-gray-700'> | |||
<label htmlFor='recency-weeks' className='block text-sm font-medium text-gray-700'> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<label htmlFor='recency-weeks' className='block text-sm font-medium text-gray-700'> | |
<label htmlFor='recency_weeks' className='block text-sm font-medium text-gray-700'> |
change here also as you have done in the below fields.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@debasishbsws thank you but this is an old PR so I'll close it
id='recency-weeks' | ||
{...register('recency-weeks', { required: true })} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
id='recency-weeks' | |
{...register('recency-weeks', { required: true })} | |
id='recency_weeks' | |
{...register('recency_weeks', { required: true })} |
This PR depends on #136 and #137.
Once those two and this one are merged, #108 will be closed.