Update Props interface in RestoreBackup and ShowBackups components to make databaseType optional, enhancing flexibility in component usage.

This commit is contained in:
Mauricio Siu
2025-05-01 20:41:06 -06:00
parent d853b1d326
commit d5c77fded3
2 changed files with 2 additions and 2 deletions

View File

@@ -71,7 +71,7 @@ type DatabaseType =
interface Props {
id: string;
databaseType: DatabaseType;
databaseType?: DatabaseType;
serverId?: string | null;
backupType?: "database" | "compose";
}

View File

@@ -32,7 +32,7 @@ import { AlertBlock } from "@/components/shared/alert-block";
interface Props {
id: string;
databaseType: Exclude<ServiceType, "application" | "redis"> | "web-server";
databaseType?: Exclude<ServiceType, "application" | "redis"> | "web-server";
backupType?: "database" | "compose";
}
export const ShowBackups = ({