diff --git a/@/components/garden-dashboard.tsx b/@/components/garden-dashboard.tsx index 216eab44..0eff7751 100644 --- a/@/components/garden-dashboard.tsx +++ b/@/components/garden-dashboard.tsx @@ -5,36 +5,29 @@ import { CardTitle, CardHeader, CardContent, Card } from "./ui/card"; import { QuickLook } from "../../components/quick-look"; import { UserMenuItems } from "../../components/Section/Navbar"; import OwnedItemsList from "../../components/Content/Inventory/UserOwnedItems"; +import { MenuIcon } from "lucide-react"; + +// import { Card, CardHeader, CardContent, CardTitle } from "./ui/card"; +// import { Button } from "./ui/button"; +// import { QuickLook } from "../../components/quick-look"; +// import OwnedItemsList from "../../components/Content/Inventory/UserOwnedItems"; +// import { UserIcon, Package2Icon, MenuIcon, ChevronDownIcon } from "./icons"; export function GardenDashboard() { return ( -
+
-
-
-

Galactic Garden

-

Welcome, Astronaut!

-
-
-
-
-
Progress
-
-
-
-
-
Available - +
    -
  • 🌱 Seedling
  • -
  • 🌿 Sprout
  • -
  • 🌼 Bloom
  • +
  • 🌻 Seedling
  • +
  • 🌻 Sprout
  • +
  • 🌻 Bloom
@@ -48,67 +41,3 @@ export function GardenDashboard() {
) } - - -function Package2Icon(props) { - return ( - - - - - - ) -} - - -function MenuIcon(props) { - return ( - - - - - - ) -} - - -function ChevronDownIcon(props) { - return ( - - - - ) -} diff --git a/components/Content/Inventory/UserOwnedItems.tsx b/components/Content/Inventory/UserOwnedItems.tsx index b9a84ef3..5829bec5 100644 --- a/components/Content/Inventory/UserOwnedItems.tsx +++ b/components/Content/Inventory/UserOwnedItems.tsx @@ -28,7 +28,8 @@ const OwnedItemsList: React.FC = () => { const { data: itemDetailsData, error: itemDetailsError } = await supabase .from('inventoryITEMS') .select('*') - .in('id', itemIds); + .in('id', itemIds) + .gt('id', 10); if (itemDetailsError) { throw itemDetailsError; @@ -56,26 +57,30 @@ const OwnedItemsList: React.FC = () => { const y = centerY + radius * Math.sin(angle); return { x, y }; }; - + const radius = 150; + return ( -
+
{itemDetails.map((item, index) => { - const { x, y } = calculatePosition(index, itemDetails.length); + const angle = (index / itemDetails.length) * 2 * Math.PI; + const x = Math.cos(angle) * radius; + const y = Math.sin(angle) * radius; + return (
{item.name}
-

{item.name}

+

{item.name}

); })}
- ); + ); }; export default OwnedItemsList; @@ -155,5 +160,5 @@ export const SectorStructureOwned: React.FC<{ sectorid: string }> = ({ sectorid })}
- ) -} \ No newline at end of file + ); +}; \ No newline at end of file