Fix ssr locale issue with side menu (#1086)

Remove unused key Success
This commit is contained in:
Richard Macarthy
2023-02-03 17:13:18 +01:00
committed by GitHub
parent 49e4a38191
commit d17c87155d
5 changed files with 10 additions and 10 deletions
+2 -2
View File
@@ -17,7 +17,7 @@ export interface SideMenuProps {
export function SideMenu(props: SideMenuProps) {
const router = useRouter();
const { colorMode, toggleColorMode } = useColorMode();
const { t } = useTranslation(["side_menu"]);
const { t } = useTranslation(["side_menu", "common"]);
return (
<main className="sticky top-0 sm:h-full">
@@ -62,7 +62,7 @@ export function SideMenu(props: SideMenuProps) {
<Button size="lg" width="full" justifyContent="center" onClick={toggleColorMode} gap="2">
<Sun size={"1em"} />
<Text fontWeight="normal" className="hidden lg:block">
{colorMode === "light" ? t("dark_mode") : t("ligth_mode")}
{colorMode === "light" ? t("common:dark_mode") : t("common:light_mode")}
</Text>
</Button>
</Tooltip>