Merge pull request #749 from rsandb/Welcome-Modal

Basic Welcome Modal
This commit is contained in:
Keith Stevens
2023-01-17 09:34:58 +09:00
committed by GitHub
3 changed files with 46 additions and 7 deletions
+2 -7
View File
@@ -1,16 +1,10 @@
import { Flex } from "@chakra-ui/react";
import Head from "next/head";
import { useSession } from "next-auth/react";
import { LeaderboardTable, TaskOption } from "src/components/Dashboard";
import { LeaderboardTable, TaskOption, WelcomeCard } from "src/components/Dashboard";
import { getDashboardLayout } from "src/components/Layout";
import { TaskCategory } from "src/components/Tasks/TaskTypes";
const Dashboard = () => {
const { data: session } = useSession();
// TODO(#670): Do something more meaningful when the user is new.
console.log(session?.user?.isNew);
return (
<>
<Head>
@@ -18,6 +12,7 @@ const Dashboard = () => {
<meta name="description" content="Chat with Open Assistant and provide feedback." />
</Head>
<Flex direction="column" gap="10">
<WelcomeCard />
<TaskOption displayTaskCategories={[TaskCategory.Tasks]} />
<LeaderboardTable />
</Flex>