From 4776335b629804fb5d61d2e2e790af60a9b2ef2a Mon Sep 17 00:00:00 2001
From: jollygrin
Date: Tue, 10 Dec 2024 04:11:08 +0100
Subject: [PATCH] clean up
---
dcl-attend-frontend/src/app/org/page.tsx | 16 ++++++-
dcl-attend-frontend/src/app/page.tsx | 48 ++++++++-----------
.../src/components/molecules/Layout/index.tsx | 5 +-
.../components/molecules/OrgPanels/index.tsx | 7 ++-
4 files changed, 43 insertions(+), 33 deletions(-)
diff --git a/dcl-attend-frontend/src/app/org/page.tsx b/dcl-attend-frontend/src/app/org/page.tsx
index 4190c43..2f8908f 100644
--- a/dcl-attend-frontend/src/app/org/page.tsx
+++ b/dcl-attend-frontend/src/app/org/page.tsx
@@ -1,14 +1,22 @@
+"use client";
+
import { IconChevDown } from "@/components/atoms/icons";
import Layout from "@/components/molecules/Layout";
import { OrgPanels } from "@/components/molecules/OrgPanels";
+import Link from "next/link";
+import { useSearchParams } from "next/navigation";
export default function OrgPage() {
+ const [paramOrgName] = useSearchParams().getAll("") ?? [];
+ console.log(`org slug: ${paramOrgName}`);
return } body={} />;
}
const Top = () => (
<>
- org
+
+ org
+
/
innkeeper
@@ -19,7 +27,11 @@ const Body = () => {
return (
<>
setIsHovering(true);
- const out = () => setIsHovering(false);
+ return } body={} />;
+}
- return (
-
-
-
-
- org
- /
- innkeeper
-
-
+const Top = () => (
+ <>
+
orgs
+ >
+);
+
+const Body = () => (
+ <>
+
+
+
+
innkeeper.eth
-
- );
-}
+
+ >
+);
diff --git a/dcl-attend-frontend/src/components/molecules/Layout/index.tsx b/dcl-attend-frontend/src/components/molecules/Layout/index.tsx
index 0889fc4..ff819ac 100644
--- a/dcl-attend-frontend/src/components/molecules/Layout/index.tsx
+++ b/dcl-attend-frontend/src/components/molecules/Layout/index.tsx
@@ -1,5 +1,6 @@
"use client";
+import Link from "next/link";
import { ReactNode, useState } from "react";
export default function Layout(props: { top?: ReactNode; body?: ReactNode }) {
@@ -19,7 +20,9 @@ export default function Layout(props: { top?: ReactNode; body?: ReactNode }) {
onMouseOut={out}
className="border-border border-r-2 group-hover:[grid-template-columns:8rem_1fr] flex flex-col items-center"
>
-
+
+
+
diff --git a/dcl-attend-frontend/src/components/molecules/OrgPanels/index.tsx b/dcl-attend-frontend/src/components/molecules/OrgPanels/index.tsx
index 12ad51d..20c4a0f 100644
--- a/dcl-attend-frontend/src/components/molecules/OrgPanels/index.tsx
+++ b/dcl-attend-frontend/src/components/molecules/OrgPanels/index.tsx
@@ -2,10 +2,12 @@ export const OrgPanels = (props: {
org: {
img: string;
name: string;
+ slug: string;
};
locations: {
name: "hyperfy" | "dcl";
location: string;
+ href?: string;
}[];
}) => {
return (
@@ -17,7 +19,10 @@ export const OrgPanels = (props: {
{props.locations?.map((loc) => (
-