mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
fix: adjust types
This commit is contained in:
@@ -10,26 +10,13 @@ import {
|
|||||||
import { api } from "@/utils/api";
|
import { api } from "@/utils/api";
|
||||||
import { Layers, Loader2 } from "lucide-react";
|
import { Layers, Loader2 } from "lucide-react";
|
||||||
import React from "react";
|
import React from "react";
|
||||||
import { columns } from "./columns";
|
import { type ApplicationList, columns } from "./columns";
|
||||||
import { DataTable } from "./data-table";
|
import { DataTable } from "./data-table";
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
serverId?: string;
|
serverId?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface ApplicationList {
|
|
||||||
ID: string;
|
|
||||||
Image: string;
|
|
||||||
Mode: string;
|
|
||||||
Name: string;
|
|
||||||
Ports: string;
|
|
||||||
Replicas: string;
|
|
||||||
CurrentState: string;
|
|
||||||
DesiredState: string;
|
|
||||||
Error: string;
|
|
||||||
Node: string;
|
|
||||||
}
|
|
||||||
|
|
||||||
export const ShowNodeApplications = ({ serverId }: Props) => {
|
export const ShowNodeApplications = ({ serverId }: Props) => {
|
||||||
const { data: NodeApps, isLoading: NodeAppsLoading } =
|
const { data: NodeApps, isLoading: NodeAppsLoading } =
|
||||||
api.swarm.getNodeApps.useQuery({ serverId });
|
api.swarm.getNodeApps.useQuery({ serverId });
|
||||||
|
|||||||
Reference in New Issue
Block a user