diff --git a/next.config.js b/next.config.js index cb1bc28..f7b521d 100644 --- a/next.config.js +++ b/next.config.js @@ -1,6 +1,6 @@ /** @type {import('next').NextConfig} */ const nextConfig = { reactStrictMode: false, // creates problems for chat -} +}; -module.exports = nextConfig +module.exports = nextConfig; diff --git a/package.json b/package.json index cf4ee3c..7b04d7e 100644 --- a/package.json +++ b/package.json @@ -29,6 +29,10 @@ "react": "18.2.0", "react-dom": "18.2.0", "tailwindcss": "3.3.3", - "typescript": "5.2.2" + "typescript": "5.2.2", + "uuid": "^9.0.0" + }, + "devDependencies": { + "@types/uuid": "^9.0.2" } } diff --git a/postcss.config.js b/postcss.config.js index 33ad091..12a703d 100644 --- a/postcss.config.js +++ b/postcss.config.js @@ -3,4 +3,4 @@ module.exports = { tailwindcss: {}, autoprefixer: {}, }, -} +}; diff --git a/src/components/auth/ErrorAlert.tsx b/src/components/auth/ErrorAlert.tsx index ebdaa1e..47f49bc 100644 --- a/src/components/auth/ErrorAlert.tsx +++ b/src/components/auth/ErrorAlert.tsx @@ -1,13 +1,9 @@ -import { AuthError } from "@supabase/supabase-js"; +import { AuthError } from '@supabase/supabase-js'; interface ErrorAlertProps { - error: AuthError + error: AuthError; } export default function ErrorAlert(props: ErrorAlertProps) { - return ( -
- {props.error.message} -
- ) + return{props.error.message}
; } diff --git a/src/components/auth/SignInForm.tsx b/src/components/auth/SignInForm.tsx index 72f5aa0..8b0c3f5 100644 --- a/src/components/auth/SignInForm.tsx +++ b/src/components/auth/SignInForm.tsx @@ -1,97 +1,109 @@ -'use client' -import { Database } from '../../../types/supabase' -import React, { useState } from 'react' +'use client'; +import { Database } from '../../../types/supabase'; +import React, { useState } from 'react'; import { AuthError } from '@supabase/supabase-js'; -import { createClientComponentClient } from '@supabase/auth-helpers-nextjs' +import { createClientComponentClient } from '@supabase/auth-helpers-nextjs'; import ErrorAlert from './ErrorAlert'; import { useRouter } from 'next/router'; - export default function SignInForm() { - const supabase = createClientComponentClient