fix: grids and lists in rte
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user