mirror of
https://github.com/wassname/Open-Assistant.git
synced 2026-08-04 12:33:56 +08:00
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user