chore: auto-fix linting and formatting issues

This commit is contained in:
dr-forget 2024-12-16 06:55:08 +00:00 committed by github-actions[bot]
parent 68e10f5eaa
commit c205626324
2 changed files with 6 additions and 7 deletions

BIN
bun.lockb

Binary file not shown.

View File

@ -2,6 +2,7 @@ import { useQuery } from "@tanstack/react-query"
import React, { useCallback, useEffect } from "react" import React, { useCallback, useEffect } from "react"
import { useTranslation } from "react-i18next" import { useTranslation } from "react-i18next"
import { Route, BrowserRouter as Router, Routes } from "react-router-dom" import { Route, BrowserRouter as Router, Routes } from "react-router-dom"
import Footer from "./components/Footer" import Footer from "./components/Footer"
import Header from "./components/Header" import Header from "./components/Header"
import { fetchSetting } from "./lib/nezha-api" import { fetchSetting } from "./lib/nezha-api"
@ -72,8 +73,6 @@ const App: React.FC = () => {
i18n.changeLanguage(settingData?.data?.language) i18n.changeLanguage(settingData?.data?.language)
} }
const customBackgroundImage = const customBackgroundImage =
// @ts-expect-error ShowNetTransfer is a global variable // @ts-expect-error ShowNetTransfer is a global variable
(window.CustomBackgroundImage as string) !== "" ? window.CustomBackgroundImage : undefined (window.CustomBackgroundImage as string) !== "" ? window.CustomBackgroundImage : undefined