修复所有lint警告和错误
This commit is contained in:
@@ -3,7 +3,10 @@
|
||||
import { Suspense, useCallback, useEffect, useState } from "react"
|
||||
import { useSearchParams } from "next/navigation"
|
||||
import { useTranslations } from "next-intl"
|
||||
const getCurrentWindow = async () => { const m = await import("@tauri-apps/api/window"); return m.getCurrentWindow() }
|
||||
const getCurrentWindow = async () => {
|
||||
const m = await import("@tauri-apps/api/window")
|
||||
return m.getCurrentWindow()
|
||||
}
|
||||
import { Loader2 } from "lucide-react"
|
||||
import { CommitWorkspace } from "@/components/layout/commit-dialog"
|
||||
import { AppTitleBar } from "@/components/layout/app-title-bar"
|
||||
@@ -74,9 +77,7 @@ function CommitPageInner() {
|
||||
}
|
||||
}, [hasValidFolderId, normalizedFolderId])
|
||||
|
||||
const pageTitle = folder
|
||||
? `${t("title")} · ${folder.name}`
|
||||
: t("title")
|
||||
const pageTitle = folder ? `${t("title")} · ${folder.name}` : t("title")
|
||||
|
||||
useEffect(() => {
|
||||
document.title = `${pageTitle} - codeg`
|
||||
|
||||
@@ -73,9 +73,7 @@ export default function LoginPage() {
|
||||
/>
|
||||
</div>
|
||||
|
||||
{error && (
|
||||
<p className="text-sm text-destructive">{error}</p>
|
||||
)}
|
||||
{error && <p className="text-sm text-destructive">{error}</p>}
|
||||
|
||||
<button
|
||||
type="submit"
|
||||
|
||||
@@ -3,7 +3,10 @@
|
||||
import { Suspense, useCallback, useEffect, useState } from "react"
|
||||
import { useSearchParams } from "next/navigation"
|
||||
import { useTranslations } from "next-intl"
|
||||
const getCurrentWindow = async () => { const m = await import("@tauri-apps/api/window"); return m.getCurrentWindow() }
|
||||
const getCurrentWindow = async () => {
|
||||
const m = await import("@tauri-apps/api/window")
|
||||
return m.getCurrentWindow()
|
||||
}
|
||||
import { Loader2 } from "lucide-react"
|
||||
import { MergeWorkspace } from "@/components/merge/merge-workspace"
|
||||
import { AppTitleBar } from "@/components/layout/app-title-bar"
|
||||
@@ -76,9 +79,7 @@ function MergePageInner() {
|
||||
}
|
||||
}, [hasValidFolderId, normalizedFolderId])
|
||||
|
||||
const pageTitle = folder
|
||||
? `${t("title")} · ${folder.name}`
|
||||
: t("title")
|
||||
const pageTitle = folder ? `${t("title")} · ${folder.name}` : t("title")
|
||||
|
||||
useEffect(() => {
|
||||
document.title = `${pageTitle} - codeg`
|
||||
|
||||
@@ -3,7 +3,10 @@
|
||||
import { Suspense, useCallback, useEffect, useState } from "react"
|
||||
import { useSearchParams } from "next/navigation"
|
||||
import { useTranslations } from "next-intl"
|
||||
const getCurrentWindow = async () => { const m = await import("@tauri-apps/api/window"); return m.getCurrentWindow() }
|
||||
const getCurrentWindow = async () => {
|
||||
const m = await import("@tauri-apps/api/window")
|
||||
return m.getCurrentWindow()
|
||||
}
|
||||
import { Loader2 } from "lucide-react"
|
||||
import { PushWorkspace } from "@/components/layout/push-workspace"
|
||||
import { AppTitleBar } from "@/components/layout/app-title-bar"
|
||||
@@ -74,9 +77,7 @@ function PushPageInner() {
|
||||
}
|
||||
}, [hasValidFolderId, normalizedFolderId])
|
||||
|
||||
const pageTitle = folder
|
||||
? `${t("title")} · ${folder.name}`
|
||||
: t("title")
|
||||
const pageTitle = folder ? `${t("title")} · ${folder.name}` : t("title")
|
||||
|
||||
useEffect(() => {
|
||||
document.title = `${pageTitle} - codeg`
|
||||
|
||||
@@ -64,9 +64,7 @@ function StashPageInner() {
|
||||
}
|
||||
}, [hasValidFolderId, normalizedFolderId])
|
||||
|
||||
const pageTitle = folder
|
||||
? `${t("title")} · ${folder.name}`
|
||||
: t("title")
|
||||
const pageTitle = folder ? `${t("title")} · ${folder.name}` : t("title")
|
||||
|
||||
useEffect(() => {
|
||||
document.title = `${pageTitle} - codeg`
|
||||
|
||||
Reference in New Issue
Block a user