mirror of
https://github.com/wassname/Open-Assistant.git
synced 2026-08-11 05:38:55 +08:00
Fix hydration issues side menu, move side_menu.json to common.json (#1327)
Fixes #1326 This PR moves all json in side_menu.json to common.json. We have an issue with the side menu layout as it's a high level component and this causes hydration issues with SSR when global namespaces are not passed by default.
This commit is contained in:
@@ -17,7 +17,7 @@ export interface SideMenuProps {
|
||||
|
||||
export function SideMenu(props: SideMenuProps) {
|
||||
const router = useRouter();
|
||||
const { t } = useTranslation(["side_menu", "common"]);
|
||||
const { t } = useTranslation();
|
||||
|
||||
return (
|
||||
<main className="sticky top-0 sm:h-full">
|
||||
|
||||
Reference in New Issue
Block a user