From c73f1d5b38510a8b502e0c8e9bc094c5479c4059 Mon Sep 17 00:00:00 2001 From: Nicolas Meienberger Date: Sun, 8 Feb 2026 15:54:10 +0100 Subject: [PATCH] fix: ts issues --- app/client/components/snapshots-table.tsx | 3 ++- app/client/modules/auth/routes/onboarding.tsx | 11 ----------- .../backups/components/snapshot-file-browser.tsx | 7 ++++--- .../modules/repositories/routes/snapshot-details.tsx | 6 +++++- app/client/modules/volumes/routes/volume-details.tsx | 1 - app/routes/(auth)/onboarding.tsx | 9 +++++++++ 6 files changed, 20 insertions(+), 17 deletions(-) diff --git a/app/client/components/snapshots-table.tsx b/app/client/components/snapshots-table.tsx index fb195df5..f87d7110 100644 --- a/app/client/components/snapshots-table.tsx +++ b/app/client/components/snapshots-table.tsx @@ -172,7 +172,8 @@ export const SnapshotsTable = ({ snapshots, repositoryId, backups }: Props) => {
e.stopPropagation()} className="hover:underline" > diff --git a/app/client/modules/auth/routes/onboarding.tsx b/app/client/modules/auth/routes/onboarding.tsx index c0f17e59..39909562 100644 --- a/app/client/modules/auth/routes/onboarding.tsx +++ b/app/client/modules/auth/routes/onboarding.tsx @@ -12,7 +12,6 @@ import { FormMessage, } from "~/client/components/ui/form"; import { authMiddleware } from "~/middleware/auth"; -import type { Route } from "./+types/onboarding"; import { AuthLayout } from "~/client/components/auth-layout"; import { Input } from "~/client/components/ui/input"; import { Button } from "~/client/components/ui/button"; @@ -22,16 +21,6 @@ import { useNavigate } from "@tanstack/react-router"; export const clientMiddleware = [authMiddleware]; -export function meta(_: Route.MetaArgs) { - return [ - { title: "Zerobyte - Onboarding" }, - { - name: "description", - content: "Welcome to Zerobyte. Create your admin account to get started.", - }, - ]; -} - const onboardingSchema = type({ username: type("2<=string<=30").pipe((str) => str.trim().toLowerCase()), email: type("string.email").pipe((str) => str.trim().toLowerCase()), diff --git a/app/client/modules/backups/components/snapshot-file-browser.tsx b/app/client/modules/backups/components/snapshot-file-browser.tsx index d15c5cb1..0a672c80 100644 --- a/app/client/modules/backups/components/snapshot-file-browser.tsx +++ b/app/client/modules/backups/components/snapshot-file-browser.tsx @@ -95,10 +95,11 @@ export const SnapshotFileBrowser = (props: Props) => {
diff --git a/app/client/modules/repositories/routes/snapshot-details.tsx b/app/client/modules/repositories/routes/snapshot-details.tsx index 2da8b140..9b405a92 100644 --- a/app/client/modules/repositories/routes/snapshot-details.tsx +++ b/app/client/modules/repositories/routes/snapshot-details.tsx @@ -126,7 +126,11 @@ export function SnapshotDetailsPage({ repositoryId, snapshotId }: { repositoryId
Backup Schedule:

- + {backupSchedule?.name}

diff --git a/app/client/modules/volumes/routes/volume-details.tsx b/app/client/modules/volumes/routes/volume-details.tsx index d703086e..50f7465a 100644 --- a/app/client/modules/volumes/routes/volume-details.tsx +++ b/app/client/modules/volumes/routes/volume-details.tsx @@ -19,7 +19,6 @@ import { import { VolumeIcon } from "~/client/components/volume-icon"; import { parseError } from "~/client/lib/errors"; import { cn } from "~/client/lib/utils"; -import type { Route } from "./+types/volume-details"; import { VolumeInfoTabContent } from "../tabs/info"; import { FilesTabContent } from "../tabs/files"; import type { VolumeStatus } from "~/client/lib/types"; diff --git a/app/routes/(auth)/onboarding.tsx b/app/routes/(auth)/onboarding.tsx index 69b28099..3883bc63 100644 --- a/app/routes/(auth)/onboarding.tsx +++ b/app/routes/(auth)/onboarding.tsx @@ -3,4 +3,13 @@ import { OnboardingPage } from "~/client/modules/auth/routes/onboarding"; export const Route = createFileRoute("/(auth)/onboarding")({ component: OnboardingPage, + head: () => ({ + meta: [ + { title: "Zerobyte - Onboarding" }, + { + name: "description", + content: "Welcome to Zerobyte. Create your admin account to get started.", + }, + ], + }), });