diff --git a/frontend/components/Navigation.tsx b/frontend/components/Navigation.tsx index 183e3cc..1204008 100644 --- a/frontend/components/Navigation.tsx +++ b/frontend/components/Navigation.tsx @@ -61,27 +61,39 @@ export function Navigation({ showExitLearning = false, onExitLearning }: Navigat -
- {/* 通知按鈕 */} - - - {/* 用戶資訊 */} -
-
- {user?.username?.[0]?.toUpperCase() || 'U'} -
- {user?.displayName || user?.username} +
+ {/* 學習模式的結束學習按鈕 */} + {showExitLearning ? ( -
+ ) : ( + <> + {/* 通知按鈕 */} + + + {/* 用戶資訊 */} +
+
+ {user?.username?.[0]?.toUpperCase() || 'U'} +
+ {user?.displayName || user?.username} + +
+ + )}