fix: static pages changes prelaunch
This commit is contained in:
@@ -1,19 +1,19 @@
|
||||
import { logout } from "@/constants/routes/handleAuth"
|
||||
import { serverClient } from "@/lib/trpc/server"
|
||||
// import { logout } from "@/constants/routes/handleAuth"
|
||||
// import { serverClient } from "@/lib/trpc/server"
|
||||
|
||||
import Link from "@/components/TempDesignSystem/Link"
|
||||
import { getIntl } from "@/i18n"
|
||||
import { getLang } from "@/i18n/serverContext"
|
||||
// import Link from "@/components/TempDesignSystem/Link"
|
||||
// import { getIntl } from "@/i18n"
|
||||
// import { getLang } from "@/i18n/serverContext"
|
||||
|
||||
import LoginButton from "../LoginButton"
|
||||
// import LoginButton from "../LoginButton"
|
||||
|
||||
import styles from "./topMenu.module.css"
|
||||
|
||||
import type { TopMenuProps } from "@/types/components/current/header/topMenu"
|
||||
|
||||
function capitalize(str: string) {
|
||||
return str.charAt(0).toUpperCase().toUpperCase() + str.slice(1).toLowerCase()
|
||||
}
|
||||
// function capitalize(str: string) {
|
||||
// return str.charAt(0).toUpperCase().toUpperCase() + str.slice(1).toLowerCase()
|
||||
// }
|
||||
|
||||
export default async function TopMenu({
|
||||
frontpageLinkText,
|
||||
@@ -21,8 +21,8 @@ export default async function TopMenu({
|
||||
links,
|
||||
languageSwitcher,
|
||||
}: TopMenuProps) {
|
||||
const { formatMessage } = await getIntl()
|
||||
const user = await serverClient().user.name()
|
||||
// const { formatMessage } = await getIntl()
|
||||
// const user = await serverClient().user.name()
|
||||
return (
|
||||
<div className={styles.topMenu}>
|
||||
<div className={styles.container}>
|
||||
@@ -42,7 +42,7 @@ export default async function TopMenu({
|
||||
</a>
|
||||
</li>
|
||||
))}
|
||||
<li className={styles.sessionContainer}>
|
||||
{/* <li className={styles.sessionContainer}>
|
||||
{user ? (
|
||||
<>
|
||||
{user ? (
|
||||
@@ -72,7 +72,7 @@ export default async function TopMenu({
|
||||
{formatMessage({ id: "Log in" })}
|
||||
</LoginButton>
|
||||
)}
|
||||
</li>
|
||||
</li> */}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user