's'
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
"use client";
|
||||
|
||||
import { useState } from "react";
|
||||
import { WelcomeBlock } from "./dashboard/WelcomeBlock";
|
||||
import { CommunityAccessModal } from "./dashboard/CommunityAccessModal";
|
||||
import { UnlockedStats } from "./dashboard/UnlockedStats";
|
||||
import { TopicEbookShowcase } from "./landing/TopicEbookShowcase";
|
||||
|
||||
@@ -31,6 +33,7 @@ function requiresEmailBinding(): boolean {
|
||||
|
||||
export function DashboardPage({ userName, userEmail }: DashboardPageProps) {
|
||||
const bindingRequired = requiresEmailBinding();
|
||||
const [communityModalOpen, setCommunityModalOpen] = useState(false);
|
||||
|
||||
return (
|
||||
<>
|
||||
@@ -40,7 +43,11 @@ export function DashboardPage({ userName, userEmail }: DashboardPageProps) {
|
||||
bindingRequired={bindingRequired}
|
||||
/>
|
||||
<UnlockedStats />
|
||||
<TopicEbookShowcase />
|
||||
<TopicEbookShowcase onCommunityCardClick={() => setCommunityModalOpen(true)} />
|
||||
<CommunityAccessModal
|
||||
open={communityModalOpen}
|
||||
onClose={() => setCommunityModalOpen(false)}
|
||||
/>
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user