From 6d4cbe7b53de8692662135dcc3a33ab07386baf1 Mon Sep 17 00:00:00 2001 From: "sweep-ai[bot]" <128439645+sweep-ai[bot]@users.noreply.github.com> Date: Thu, 7 Sep 2023 23:24:54 +0000 Subject: [PATCH 1/8] Updated app/layout.tsx --- app/layout.tsx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/app/layout.tsx b/app/layout.tsx index 4bb31d0..9d42df2 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -61,8 +61,4 @@ export default function RootLayout({
- - - - ); -} + From 082e80eff232936d246f51a4dabc9b629f7adbf1 Mon Sep 17 00:00:00 2001 From: "sweep-ai[bot]" <128439645+sweep-ai[bot]@users.noreply.github.com> Date: Thu, 7 Sep 2023 23:25:48 +0000 Subject: [PATCH 2/8] Updated components/site-header.tsx --- components/site-header.tsx | 1 - 1 file changed, 1 deletion(-) diff --git a/components/site-header.tsx b/components/site-header.tsx index 3a7eca4..d0a50ac 100644 --- a/components/site-header.tsx +++ b/components/site-header.tsx @@ -40,7 +40,6 @@ export async function SiteHeader() { GitHub - {user && } From d3b4db651ef5f298c1fe07e8aa11d1aae6814f62 Mon Sep 17 00:00:00 2001 From: "sweep-ai[bot]" <128439645+sweep-ai[bot]@users.noreply.github.com> Date: Thu, 7 Sep 2023 23:26:43 +0000 Subject: [PATCH 3/8] Updated components/theme-toggle.tsx --- components/theme-toggle.tsx | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/components/theme-toggle.tsx b/components/theme-toggle.tsx index 7de133c..e69de29 100644 --- a/components/theme-toggle.tsx +++ b/components/theme-toggle.tsx @@ -1,23 +0,0 @@ -"use client"; - -import * as React from "react"; -import { useTheme } from "next-themes"; - -import { Button } from "@/components/ui/button"; -import { Icons } from "@/components/icons"; - -export function ThemeToggle() { - const { setTheme, theme } = useTheme(); - - return ( - - ); -} From 171999b9f91c8eff15c3c801ca7ea95b71ddc2bc Mon Sep 17 00:00:00 2001 From: "sweep-ai[bot]" <128439645+sweep-ai[bot]@users.noreply.github.com> Date: Thu, 7 Sep 2023 23:27:25 +0000 Subject: [PATCH 4/8] Updated app/_examples/client-component/page.tsx --- app/_examples/client-component/page.tsx | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/app/_examples/client-component/page.tsx b/app/_examples/client-component/page.tsx index aab0068..55d30c1 100644 --- a/app/_examples/client-component/page.tsx +++ b/app/_examples/client-component/page.tsx @@ -1,29 +1,29 @@ -'use client' +"use client"; // TODO: Duplicate or move this file outside the `_examples` folder to make it a route -import { createClientComponentClient } from '@supabase/auth-helpers-nextjs' -import { useEffect, useState } from 'react' +import { createClientComponentClient } from "@supabase/auth-helpers-nextjs"; +import { useEffect, useState } from "react"; export default function ClientComponent() { - const [todos, setTodos] = useState([]) + const [todos, setTodos] = useState([]); // Create a Supabase client configured to use cookies - const supabase = createClientComponentClient() + const supabase = createClientComponentClient(); useEffect(() => { const getTodos = async () => { // This assumes you have a `todos` table in Supabase. Check out // the `Create Table and seed with data` section of the README 👇 // https://github.com/vercel/next.js/blob/canary/examples/with-supabase/README.md - const { data } = await supabase.from('todos').select() + const { data } = await supabase.from("todos").select(); if (data) { - setTodos(data) + setTodos(data); } - } + }; - getTodos() - }, [supabase, setTodos]) + getTodos(); + }, [supabase, setTodos]); - return
{JSON.stringify(todos, null, 2)}
+ return
{JSON.stringify(todos, null, 2)}
; } From 4e6719bea87789bde8de5a5d8d6cd30aeeac1ae4 Mon Sep 17 00:00:00 2001 From: "sweep-ai[bot]" <128439645+sweep-ai[bot]@users.noreply.github.com> Date: Thu, 7 Sep 2023 23:28:07 +0000 Subject: [PATCH 5/8] Updated app/_examples/server-action/page.tsx --- app/_examples/server-action/page.tsx | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/app/_examples/server-action/page.tsx b/app/_examples/server-action/page.tsx index 4807e3e..3140fbb 100644 --- a/app/_examples/server-action/page.tsx +++ b/app/_examples/server-action/page.tsx @@ -1,29 +1,29 @@ // TODO: Duplicate or move this file outside the `_examples` folder to make it a route -import { createServerActionClient } from '@supabase/auth-helpers-nextjs' -import { revalidatePath } from 'next/cache' -import { cookies } from 'next/headers' +import { createServerActionClient } from "@supabase/auth-helpers-nextjs"; +import { revalidatePath } from "next/cache"; +import { cookies } from "next/headers"; export default async function ServerAction() { const addTodo = async (formData: FormData) => { - 'use server' - const title = formData.get('title') + "use server"; + const title = formData.get("title"); if (title) { // Create a Supabase client configured to use cookies - const supabase = createServerActionClient({ cookies }) + const supabase = createServerActionClient({ cookies }); // This assumes you have a `todos` table in Supabase. Check out // the `Create Table and seed with data` section of the README 👇 // https://github.com/vercel/next.js/blob/canary/examples/with-supabase/README.md - await supabase.from('todos').insert({ title }) - revalidatePath('/server-action-example') + await supabase.from("todos").insert({ title }); + revalidatePath("/server-action-example"); } - } + }; return (
- ) + ); } From d06fe8d11fd52588e648c68787ed26fbecbe8880 Mon Sep 17 00:00:00 2001 From: "sweep-ai[bot]" <128439645+sweep-ai[bot]@users.noreply.github.com> Date: Thu, 7 Sep 2023 23:33:10 +0000 Subject: [PATCH 6/8] Updated app/layout.tsx --- app/layout.tsx | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/app/layout.tsx b/app/layout.tsx index 9d42df2..bafd09f 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -48,6 +48,23 @@ export default function RootLayout({ return ( + + + + + + + );
From 289e47688d3cd1c97b1969ded4d1ff7d5755edf6 Mon Sep 17 00:00:00 2001 From: "sweep-ai[bot]" <128439645+sweep-ai[bot]@users.noreply.github.com> Date: Thu, 7 Sep 2023 23:37:52 +0000 Subject: [PATCH 7/8] Updated app/layout.tsx --- app/layout.tsx | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/app/layout.tsx b/app/layout.tsx index bafd09f..b622a98 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -66,16 +66,3 @@ export default function RootLayout({ ); - - - From 1c1869cc4f7b448cba2a5d69e5744ef9c8946426 Mon Sep 17 00:00:00 2001 From: "sweep-ai[bot]" <128439645+sweep-ai[bot]@users.noreply.github.com> Date: Thu, 7 Sep 2023 23:48:40 +0000 Subject: [PATCH 8/8] Updated app/layout.tsx --- app/layout.tsx | 1 - 1 file changed, 1 deletion(-) diff --git a/app/layout.tsx b/app/layout.tsx index b622a98..9db4309 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -65,4 +65,3 @@ export default function RootLayout({ ); -