forked from VinokurovVE/tests
Update
This commit is contained in:
@ -3,8 +3,9 @@ import { IServer } from '../interfaces/servers'
|
||||
import { useServerIps } from '../hooks/swrHooks'
|
||||
import FullFeaturedCrudGrid from './TableEditable'
|
||||
import { GridColDef } from '@mui/x-data-grid'
|
||||
import { AxiosResponse } from 'axios'
|
||||
|
||||
function ServerData({ id, name, region_id }: IServer) {
|
||||
function ServerData({ id }: IServer) {
|
||||
const { serverIps } = useServerIps(id, 0, 10)
|
||||
|
||||
const serverIpsColumns: GridColDef[] = [
|
||||
@ -24,9 +25,16 @@ function ServerData({ id, name, region_id }: IServer) {
|
||||
columns={serverIpsColumns}
|
||||
actions
|
||||
onRowClick={(params, event, details) => {
|
||||
console.log(params.id, event, details)
|
||||
//setCurrentServerData(params.row)
|
||||
//setServerDataOpen(true)
|
||||
}}
|
||||
onSave={undefined}
|
||||
onDelete={function (data: any): Promise<AxiosResponse<any, any>> {
|
||||
console.log(data)
|
||||
throw new Error('Function not implemented.')
|
||||
}}
|
||||
loading={false}
|
||||
/>
|
||||
}
|
||||
</Box>
|
||||
|
Reference in New Issue
Block a user