Merge pull request '🚨 fix: resolve linting errors' (#5) from fix/lint into main
All checks were successful
Sync to GitHub / sync (push) Successful in 7s

Reviewed-on: #5
This commit is contained in:
2026-02-10 20:37:39 +07:00
4 changed files with 4 additions and 5 deletions

View File

@ -8,7 +8,7 @@ const page = async () => {
try { try {
const data = await backendFetch("status"); const data = await backendFetch("status");
console.log(data); console.log(data);
} catch (_) { } catch {
isDown = true; isDown = true;
} }
if (!isDown) redirect("/"); if (!isDown) redirect("/");

View File

@ -1,7 +1,6 @@
import type { Metadata } from "next"; import type { Metadata } from "next";
import { Geist, Geist_Mono, Inter } from "next/font/google"; import { Geist, Geist_Mono, Inter } from "next/font/google";
import "./globals.css"; import "./globals.css";
import AuthSessionProviderWrapper from "@/shared/providers/AuthSession";
const inter = Inter({ subsets: ["latin"], variable: "--font-sans" }); const inter = Inter({ subsets: ["latin"], variable: "--font-sans" });

View File

@ -18,8 +18,8 @@ const StatusIndex = () => {
Service is temporarily unavailable Service is temporarily unavailable
</h1> </h1>
<p className="text-sm text-neutral-300 mt-2"> <p className="text-sm text-neutral-300 mt-2">
We're currently experiencing an issue with this service and our team We&apos;re currently experiencing an issue with this service and our
is working to restore it as quickly as possible. You can still team is working to restore it as quickly as possible. You can still
browse other features while we fix the problem. Please check back in browse other features while we fix the problem. Please check back in
a few moments. We appreciate your patience. a few moments. We appreciate your patience.
</p> </p>

View File

@ -42,7 +42,7 @@ export const backendFetch = async (path: string, options: RequestInit = {}) => {
} }
return resJson; return resJson;
} catch (error) { } catch {
redirect("/status?reason=backend-unreachable"); redirect("/status?reason=backend-unreachable");
} }
}; };