-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🧸🧂 ↝ looking into backend schema for creation of base-base planet ins…
…tances
- Loading branch information
1 parent
6267c96
commit 48866c6
Showing
3 changed files
with
55 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import React, { useState, useEffect } from "react"; | ||
import { useSupabaseClient, useSession } from "@supabase/auth-helpers-react"; | ||
|
||
export default function SelectYourBasePlanet () { | ||
const supabase = useSupabaseClient(); | ||
const session = useSession(); | ||
|
||
async function createPlanet() { | ||
supabase | ||
.from("inventoryPLANETS") | ||
//... | ||
} | ||
|
||
return ( | ||
<p>Test</p> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import { useSession, useSupabaseClient } from "@supabase/auth-helpers-react"; | ||
import React, { useState } from "react"; | ||
import Layout from "../../components/Section/Layout"; | ||
import SelectYourBasePlanet from "../../components/Content/Planets/Base/SelectYourPlanet"; | ||
import ClassificationFeed from "../../components/Content/ClassificationFeed"; | ||
|
||
export default function Home() { | ||
const session = useSession(); | ||
const supabase = useSupabaseClient(); | ||
|
||
// add an iframe/ref to super.so dashboard | ||
|
||
async function logoutUser () { | ||
const { error } = await supabase.auth.signOut() | ||
} | ||
|
||
const userId = session?.user?.id; | ||
|
||
if (session) { | ||
return ( | ||
<Layout> | ||
<SelectYourBasePlanet /> | ||
</Layout> | ||
); | ||
}; | ||
|
||
return ( | ||
<Layout>Hello</Layout> | ||
); | ||
}; |