From 1680b370fd0eab8cead9c27c2acc76f3bd7f23b3 Mon Sep 17 00:00:00 2001 From: 0xTranqui Date: Tue, 30 Apr 2024 22:38:08 -0400 Subject: [PATCH] removing lots of stuff that would need to build --- apps/site/app/(base)/layout.tsx | 2 +- apps/site/app/directory/page.tsx | 18 +++++++++--------- apps/site/app/layout.tsx | 2 +- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/apps/site/app/(base)/layout.tsx b/apps/site/app/(base)/layout.tsx index 2a1facab..5596eda7 100644 --- a/apps/site/app/(base)/layout.tsx +++ b/apps/site/app/(base)/layout.tsx @@ -11,7 +11,7 @@ export default function BaseLayout({ return (
- + {/* */}
diff --git a/apps/site/app/directory/page.tsx b/apps/site/app/directory/page.tsx index 774fc8e0..457b2426 100644 --- a/apps/site/app/directory/page.tsx +++ b/apps/site/app/directory/page.tsx @@ -14,10 +14,10 @@ export default async function Directory({ searchParams: { [key: string]: string | string[] | undefined } }) { let channels - let users + // let users if (searchParams.view === 'user') { - users = await getAllFields({ field: 'name' }) + // users = await getAllFields({ field: 'name' }) } else { const data = await getMostRecentChannels() channels = data.channels @@ -26,9 +26,9 @@ export default async function Directory({ if (channels) { channels.sort((a, b) => a.name.localeCompare(b.name)) } - if (users) { - users.sort((x: string, y: string) => x.localeCompare(y)) - } + // if (users) { + // users.sort((x: string, y: string) => x.localeCompare(y)) + // } function checkIsPublic({ roleData }: { roleData: ChannelRoles[] }) { for (let i = 0; i < roleData.length; ++i) { @@ -40,13 +40,13 @@ export default async function Directory({ return (
- + {/* */}
Filter - + {/* */}
@@ -75,7 +75,7 @@ export default async function Directory({ })} )} - {users && ( + {/* {users && ( {users.map((user: string) => ( ))} - )} + )} */}
{}
diff --git a/apps/site/app/layout.tsx b/apps/site/app/layout.tsx index db646131..7fa145e1 100644 --- a/apps/site/app/layout.tsx +++ b/apps/site/app/layout.tsx @@ -21,7 +21,7 @@ export default function RootLayout({ -
+ {/*
*/}