1- /* eslint-disable @typescript-eslint/no-unused-vars */
2- // FIXME: 移除上面的disable注释
31import MyContextMenuContent from "@/components/context-menu-content" ;
42import RenderSubWindows from "@/components/render-sub-windows" ;
53import { Button } from "@/components/ui/button" ;
@@ -19,7 +17,6 @@ import { restoreStateCurrent, saveWindowState, StateFlags } from "@tauri-apps/pl
1917import { useAtom } from "jotai" ;
2018import { CloudUpload , Copy , Dot , Minus , Square , X } from "lucide-react" ;
2119import { useEffect , useRef , useState } from "react" ;
22- import { useTranslation } from "react-i18next" ;
2320import { toast } from "sonner" ;
2421import { URI } from "vscode-uri" ;
2522
@@ -32,8 +29,6 @@ export default function App() {
3229 const [ projects , setProjects ] = useAtom ( projectsAtom ) ;
3330 const [ activeProject , setActiveProject ] = useAtom ( activeProjectAtom ) ;
3431 const canvasWrapperRef = useRef < HTMLDivElement > ( null ) ;
35- const [ isWindowCollapsing , setIsWindowCollapsing ] = useState ( false ) ;
36- const [ isClassroomMode , setIsClassroomMode ] = Settings . use ( "isClassroomMode" ) ;
3732 const [ isWide , setIsWide ] = useState ( false ) ;
3833 const [ telemetryEventSent , setTelemetryEventSent ] = useState ( false ) ;
3934 const [ dropState , setDropState ] = useState < "none" | "open" | "append" > ( "none" ) ;
@@ -42,7 +37,7 @@ export default function App() {
4237 const scrollPositionRef = useRef ( 0 ) ; // 用于保存滚动位置的 ref,防止切换标签页时滚动位置丢失
4338 const contextMenuTriggerRef = useRef < HTMLDivElement > ( null ) ;
4439
45- const { t } = useTranslation ( "app" ) ;
40+ // const { t } = useTranslation("app");
4641
4742 useEffect ( ( ) => {
4843 window . addEventListener ( "keyup" , async ( event ) => {
0 commit comments