mirror of
https://github.com/linsa-io/linsa.git
synced 2026-01-12 12:20:23 +01:00
Q & A + journal (#174)
* tasks * task input * community route * added thread and list for community QA * answers thread * journal sidebar section * journal calendar * fix: stuff * fix: stuff * fix: stuff * chore: disable comunitty toggle * fix: typo import header --------- Co-authored-by: marshennikovaolga <marshennikova@gmail.com> Co-authored-by: Aslam H <iupin5212@gmail.com>
This commit is contained in:
5
web/app/(pages)/community/[topicName]/page.tsx
Normal file
5
web/app/(pages)/community/[topicName]/page.tsx
Normal file
@@ -0,0 +1,5 @@
|
||||
import { CommunityTopicRoute } from "@/components/routes/community/CommunityTopicRoute"
|
||||
|
||||
export default function CommunityTopicPage({ params }: { params: { topicName: string } }) {
|
||||
return <CommunityTopicRoute topicName={params.topicName} />
|
||||
}
|
||||
15
web/app/(pages)/journal/page.tsx
Normal file
15
web/app/(pages)/journal/page.tsx
Normal file
@@ -0,0 +1,15 @@
|
||||
import { JournalRoute } from "@/components/routes/journal/JournalRoute"
|
||||
import { currentUser } from "@clerk/nextjs/server"
|
||||
import { notFound } from "next/navigation"
|
||||
import { get } from "ronin"
|
||||
|
||||
export default async function JournalPage() {
|
||||
const user = await currentUser()
|
||||
const flag = await get.featureFlag.with.name("JOURNAL")
|
||||
|
||||
if (!user?.emailAddresses.some(email => flag?.emails.includes(email.emailAddress))) {
|
||||
notFound()
|
||||
}
|
||||
|
||||
return <JournalRoute />
|
||||
}
|
||||
@@ -74,3 +74,12 @@
|
||||
|
||||
@import "./command-palette.css";
|
||||
@import "./custom.css";
|
||||
|
||||
.scrollbar-hide {
|
||||
-ms-overflow-style: none;
|
||||
scrollbar-width: none;
|
||||
}
|
||||
|
||||
.scrollbar-hide::-webkit-scrollbar {
|
||||
display: none;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user