today and upcoming tasks

This commit is contained in:
marshennikovaolga
2024-10-01 18:36:17 +03:00
parent 14a8536583
commit 315f7bf38e
12 changed files with 465 additions and 125 deletions

View File

@@ -0,0 +1,15 @@
import { TaskRoute } from "@/components/routes/task/TaskRoute"
import { currentUser } from "@clerk/nextjs/server"
import { notFound } from "next/navigation"
import { get } from "ronin"
export default async function TodayTasksPage() {
const user = await currentUser()
const flag = await get.featureFlag.with.name("TASK")
if (!user?.emailAddresses.some(email => flag?.emails.includes(email.emailAddress))) {
notFound()
}
return <TaskRoute filter="today" />
}