Skip to content

Commit

Permalink
fix: adjust types
Browse files Browse the repository at this point in the history
  • Loading branch information
Siumauricio committed Dec 25, 2024
1 parent d4a3c5c commit 364c2e1
Showing 1 changed file with 1 addition and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,26 +10,13 @@ import {
import { api } from "@/utils/api";
import { Layers, Loader2 } from "lucide-react";
import React from "react";
import { columns } from "./columns";
import { type ApplicationList, columns } from "./columns";
import { DataTable } from "./data-table";

interface Props {
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) => {
const { data: NodeApps, isLoading: NodeAppsLoading } =
api.swarm.getNodeApps.useQuery({ serverId });
Expand Down

0 comments on commit 364c2e1

Please sign in to comment.