From d8a90bf6b4d941183e7be02cc94e817722980008 Mon Sep 17 00:00:00 2001 From: Gen Tamura Date: Sun, 5 Mar 2023 17:40:38 +0900 Subject: [PATCH] Update with-nextjs.mdx Changed the reference of `ThemeSupa` to `@supabase/auth-ui-shared`, which is the correct library. --- .../pages/guides/getting-started/tutorials/with-nextjs.mdx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/apps/docs/pages/guides/getting-started/tutorials/with-nextjs.mdx b/apps/docs/pages/guides/getting-started/tutorials/with-nextjs.mdx index bbee6933442..2c2c5de48a5 100644 --- a/apps/docs/pages/guides/getting-started/tutorials/with-nextjs.mdx +++ b/apps/docs/pages/guides/getting-started/tutorials/with-nextjs.mdx @@ -166,7 +166,8 @@ npm install @supabase/auth-ui-react Add the `Auth` component to your home page ```jsx title=pages/index.js -import { Auth, ThemeSupa } from '@supabase/auth-ui-react' +import { Auth } from '@supabase/auth-ui-react' +import { ThemeSupa } from '@supabase/auth-ui-shared' import { useSession, useSupabaseClient } from '@supabase/auth-helpers-react' const Home = () => { @@ -448,7 +449,8 @@ export default function Account({ session }: { session: Session }) { Now that we have all the components in place, let's update `pages/index.js`: ```jsx lines=3,14 title=pages/index.js -import { Auth, ThemeSupa } from '@supabase/auth-ui-react' +import { Auth } from '@supabase/auth-ui-react' +import { ThemeSupa } from '@supabase/auth-ui-shared' import { useSession, useSupabaseClient } from '@supabase/auth-helpers-react' import Account from '../components/Account'