- CN
+
+ {avatarFallback}
+
{user.name}
@@ -87,19 +86,13 @@ export function NavUser({
-
-
- 账号
-
- router.push("/sign-in")}>
-
- 切换用户
-
+
+
- 登出
+ {t("LogOut")}
diff --git a/src/components/sidebar/app-sidebar.tsx b/src/components/sidebar/app-sidebar.tsx
index 1412781..96e9f77 100644
--- a/src/components/sidebar/app-sidebar.tsx
+++ b/src/components/sidebar/app-sidebar.tsx
@@ -14,7 +14,6 @@ import { User } from "next-auth";
import { siteConfig } from "@/config/site";
import { NavMain } from "@/components/nav-main";
import { NavUser } from "@/components/nav-user";
-import { NavProjects } from "@/components/nav-projects";
import { NavSecondary } from "@/components/nav-secondary";
import { Command, LifeBuoy, Send, Shield } from "lucide-react";
import { useTranslations } from "next-intl";
@@ -27,10 +26,6 @@ const data = {
icon: Shield,
isActive: true,
items: [
- {
- title: "我的进度",
- url: "/dashboard/student/dashboard",
- },
{
title: "开始做题",
url: "/problemset",
@@ -39,6 +34,10 @@ const data = {
title: "我的课程",
url: "/dashboard/student/courses",
},
+ {
+ title: "我的进度",
+ url: "/dashboard/student/dashboard",
+ },
{
title: "个人设置",
url: "/dashboard/management",
@@ -93,14 +92,9 @@ const data = {
interface AppSidebarProps {
user: User;
- wrongProblems: {
- id: string;
- name: string;
- status: string;
- }[];
}
-export function AppSidebar({ user, wrongProblems, ...props }: AppSidebarProps) {
+export function AppSidebar({ user, ...props }: AppSidebarProps) {
const t = useTranslations("Sidebar");
const userInfo = {
name: user.name ?? "",
@@ -129,7 +123,6 @@ export function AppSidebar({ user, wrongProblems, ...props }: AppSidebarProps) {
-