Skip to content

Commit

Permalink
everything except marquee wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
0xTranqui committed May 1, 2024
1 parent 1680b37 commit 273080a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion apps/site/app/channel/[id]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export default async function Channel({
return (
<section>
<div className="fixed top-[var(--header-height)] z-50 w-full">
<MarqueeWrapper />
{/* <MarqueeWrapper /> */}
</div>
<Flex className="px-5 pt-[104px]">
<div className="hidden md:w-[19%] md:block">
Expand Down
16 changes: 8 additions & 8 deletions apps/site/app/directory/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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) {
Expand All @@ -46,7 +46,7 @@ export default async function Directory({
<div className="md:w-[19%] md:block">
<Stack className="gap-y-[30px]">
<Typography>Filter</Typography>
{/* <UserChannelToggle /> */}
<UserChannelToggle />
</Stack>
</div>
<div className="w-full md:w-[78%]">
Expand Down Expand Up @@ -75,7 +75,7 @@ export default async function Directory({
})}
</Grid>
)}
{/* {users && (
{users && (
<Grid className="grid-cols-1 md:grid-cols-4 gap-y-[3px]">
{users.map((user: string) => (
<Link
Expand All @@ -87,7 +87,7 @@ export default async function Directory({
</Link>
))}
</Grid>
)} */}
)}
</div>

<div className="hidden md:w-[3%] md:block">{}</div>
Expand Down
2 changes: 1 addition & 1 deletion apps/site/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export default function RootLayout({
<html lang="en" className={`${sfMono.variable}`} suppressHydrationWarning>
<body>
<Providers>
{/* <Header /> */}
<Header />
<NextTopLoader
color="#B4B4B4"
initialPosition={0.08}
Expand Down

0 comments on commit 273080a

Please sign in to comment.