Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 12 additions & 13 deletions app/(pages)/(hackers)/(hub)/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,23 +1,22 @@
import { auth } from '@/auth';
// import { auth } from '@/auth';
import ProtectedDisplay from '@components/ProtectedDisplay/ProtectedDisplay';
import Navbar from '@components/Navbar/Navbar';
import HackbotWidgetWrapper from '../_components/Hackbot/HackbotWidgetWrapper';
import type { HackerProfile } from '@typeDefs/hackbot';
// import HackbotWidgetWrapper from '../_components/Hackbot/HackbotWidgetWrapper';

export default async function Layout({
children,
}: {
children: React.ReactNode;
}) {
const session = await auth();
const u = session?.user as any;
const profile: HackerProfile | null = u
? {
name: u.name ?? undefined,
position: u.position ?? undefined,
is_beginner: u.is_beginner ?? undefined,
}
: null;
// const session = await auth();
// const u = session?.user as any;
// const profile: HackerProfile | null = u
// ? {
// name: u.name ?? undefined,
// position: u.position ?? undefined,
// is_beginner: u.is_beginner ?? undefined,
// }
// : null;

return (
<ProtectedDisplay
Expand All @@ -26,7 +25,7 @@ export default async function Layout({
>
<Navbar />
{children}
<HackbotWidgetWrapper initialProfile={profile} />
{/* <HackbotWidgetWrapper initialProfile={profile} /> */}
</ProtectedDisplay>
);
}
4 changes: 2 additions & 2 deletions app/(pages)/(hackers)/(hub)/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ export default function Page() {
<MDHelp />
</ClientTimeProtectedDisplay>
{/* temporarilty set featureId below to "hero-hacking" to test */}
<ClientTimeProtectedDisplay featureId="hero-hacking">
<ClientTimeProtectedDisplay featureId="hero-judging">
<HeroWaiting />
<HeroJudging />
<HackerChoiceAward />
</ClientTimeProtectedDisplay>
<ClientTimeProtectedDisplay featureId="hero-hacking">
<ClientTimeProtectedDisplay featureId="table-number-checkin">
<TableNumberCheckin />
</ClientTimeProtectedDisplay>
</TableNumberContextProvider>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import mascots from '@public/hackers/starter-kit/teamBuilding/mascotSquad.svg';
import { CalendarItem } from '@pages/(hackers)/_components/Schedule/CalendarItem';
import { MentorCalloutCard } from '@pages/(hackers)/_components/StarterKit/Ideate/IdeateMentorCallout';

// TODO: Update with actual Team Mixer details
const TEAM_MIXER_EVENT: Event = {
name: 'Team Mixer',
type: 'ACTIVITIES',
Expand Down
Loading