fix: grids and lists in rte

This commit is contained in:
Christel Westerberg
2024-07-08 15:28:58 +02:00
parent da343f45da
commit cccfbfe29a
4 changed files with 19 additions and 14 deletions

View File

@@ -1,12 +1,14 @@
import { auth } from "@/auth"
import { serverClient } from "@/lib/trpc/server"
import MyPagesSidebar from "@/components/MyPages/Sidebar"
import { LangParams } from "@/types/params"
export default async function MyPagesNavigation({ lang }: LangParams) {
const session = await auth()
const user = await serverClient().user.name()
if (!session) {
// Check if we have user, that means we are logged in.
if (!user) {
return null
}