diff --git a/.DS_Store b/.DS_Store index 9cfc02de..3b497b8c 100644 Binary files a/.DS_Store and b/.DS_Store differ diff --git a/components/Authentication/LoginModal.tsx b/components/Authentication/LoginModal.tsx index b1622c35..a67978f8 100644 --- a/components/Authentication/LoginModal.tsx +++ b/components/Authentication/LoginModal.tsx @@ -1,7 +1,7 @@ import { ReactNode, useEffect } from 'react'; // import { useHistory } from 'react-router-dom'; import Link from 'next/link'; -import Layout from '../../components/Section/Layout'; +import Layout from '../_Core/Section/Layout'; import { Auth, ThemeSupa } from '@supabase/auth-ui-react'; import { useSession, useSupabaseClient } from '@supabase/auth-helpers-react'; import { useRouter } from 'next/router'; diff --git a/components/Content/Archive/ArchivedInventory.tsx b/components/Content/Archive/ArchivedInventory.tsx index 23f94563..4dc64b8b 100644 --- a/components/Content/Archive/ArchivedInventory.tsx +++ b/components/Content/Archive/ArchivedInventory.tsx @@ -1,9 +1,9 @@ import React from "react"; import { useSession, useSupabaseClient } from "@supabase/auth-helpers-react"; -import Layout from "../../Section/Layout"; +import Layout from "../../_Core/Section/Layout"; import OwnedPlanetsList from "./UserOwnedPlanets"; // Potentially this should be in a lists component dir import OwnedItemsList from "../Inventory/UserOwnedItems"; -import MySpaceships from "../Inventory/Vehicles/MySpaceships"; +import MySpaceships from "../../Gameplay/Vehicles/MySpaceships"; export default function V1Inventory() { // Inventory items for v1 of public schema, see notes below const supabase = useSupabaseClient(); diff --git a/components/Content/ClassificationFeed.tsx b/components/Content/ClassificationFeed.tsx deleted file mode 100644 index 8765a9a9..00000000 --- a/components/Content/ClassificationFeed.tsx +++ /dev/null @@ -1,323 +0,0 @@ -import React, { useEffect, useState } from "react"; -import { useSession, useSupabaseClient, SupabaseClient } from "@supabase/auth-helpers-react"; -import CardForum, { CommentItem, RoverContentCard } from "./DiscussCard"; - -export default function ClassificationFeed({ custommaxWidth = '85%' }) { - const supabase = useSupabaseClient(); - const [posts, setPosts] = useState([]); - - useEffect(() => { - fetchPosts(); - }, []); - - async function fetchPosts() { - try { - const postsResponse = await supabase - .from("basePlanets") - .select( - "id, content, created_at, planets2, planetsss(id, temperature), profiles(id, avatar_url, full_name, username)" - ) - .order('created_at', { ascending: false }); - - const roverImagePostsResponse = await supabase - .from("contentROVERIMAGES") - .select("id, content, created_at") - .order('created_at', { ascending: false }); - - const combinedPosts = [...postsResponse.data, ...roverImagePostsResponse.data]; - - const sortedPosts = combinedPosts.sort((a, b) => - new Date(b.created_at).getTime() - new Date(a.created_at).getTime() - ); - - setPosts(sortedPosts); - } catch (error) { - console.error("Error fetching posts:", error.message); - } - } - - return ( -
{post.planetId}
- > - ))} -{post.planetId}
- > - ))} -{post.planetId}
+ > + ))} +