Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
silvareal committed Dec 30, 2022
1 parent 512c15e commit f95b218
Showing 1 changed file with 20 additions and 23 deletions.
43 changes: 20 additions & 23 deletions web/src/server/ServerDetailServicesTabPanelProcess.tsx
Original file line number Diff line number Diff line change
@@ -1,19 +1,16 @@
import { getCoreRowModel } from '@tanstack/react-table';
import { useVirtual } from 'react-virtual';
import Table from 'common/Table';
import useTable from 'common/useTable';
import React from 'react';
import { ProcessData, ServerResponseType } from './ServerType';
import { getCoreRowModel } from "@tanstack/react-table";
import { useVirtual } from "react-virtual";
import Table from "common/Table";
import useTable from "common/useTable";
import React from "react";
import {
ProcessData,
ServerResponseType,
ServerServiceNameType,
} from "./ServerType";

interface ServerDetailServicesTabPanelProcessType {
serverName:
| 'disk'
| 'docker'
| 'uptime'
| 'memory'
| 'process'
| 'loadavg'
| 'tcp';
serverName: ServerServiceNameType;
serverData: ServerResponseType<ProcessData[]>;
}

Expand Down Expand Up @@ -44,7 +41,7 @@ export default function ServerDetailServicesTabPanelProcess(
return (
<Table
ref={tableContainerRef}
variant='default'
variant="default"
virtualization
instance={tableInstance}
virtualizationInstance={rowVirtualizer}
Expand All @@ -54,19 +51,19 @@ export default function ServerDetailServicesTabPanelProcess(

const columns = [
{
header: 'Command',
accessorKey: 'Command',
header: "SessionName",
accessorKey: "SessionName",
},
{
header: 'SessionName',
accessorKey: 'SessionName',
header: "Memory",
accessorKey: "Memory",
},
{
header: 'Memory',
accessorKey: 'Memory',
header: "Pid",
accessorKey: "Pid",
},
{
header: 'Pid',
accessorKey: 'Pid',
header: "Command",
accessorKey: "Command",
},
];

0 comments on commit f95b218

Please sign in to comment.