forked from wishonia/wishonia
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ArticleWithRelations
for better type coverage in researcher module.…
… Enhanced the UI by displaying article categories and tags, improved topic handling in forms and query parameters, and added a new layout for the researcher page.
- Loading branch information
Showing
7 changed files
with
13,093 additions
and
10,619 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import { generalSidebarNav } from "@/config/links" | ||
import { getCurrentUser } from "@/lib/session" | ||
import Footer from "@/components/layout/footer" | ||
import TopNavbar from "@/components/layout/topNavbar" | ||
import { SidebarNav } from "@/components/sidebar-nav" | ||
|
||
interface DashboardLayoutProps { | ||
children: React.ReactNode | ||
} | ||
|
||
export default async function DashboardLayout({ | ||
children, | ||
}: DashboardLayoutProps) { | ||
const user = await getCurrentUser() | ||
|
||
return ( | ||
<div className="flex min-h-screen flex-col space-y-6"> | ||
<TopNavbar | ||
user={{ | ||
name: user?.name, | ||
image: user?.image, | ||
email: user?.email, | ||
}} | ||
/> | ||
<div className="container grid flex-1 gap-12 md:grid-cols-[200px_1fr]"> | ||
<aside className="hidden w-[200px] flex-col md:flex"> | ||
<SidebarNav items={generalSidebarNav.data} /> | ||
</aside> | ||
<main className="flex w-full flex-1 flex-col">{children}</main> | ||
</div> | ||
<Footer /> | ||
</div> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.