fixed lint issues
This commit is contained in:
parent
b67fe48f72
commit
519d24722e
12 changed files with 54 additions and 46 deletions
|
|
@ -1,6 +1,6 @@
|
|||
import { DataTable } from '@/components/ui';
|
||||
import { PlusIcon, TrashIcon } from '@heroicons/react/24/outline';
|
||||
import type { ColumnDef } from '@tanstack/react-table';
|
||||
import type { ColumnDef, Row } from '@tanstack/react-table';
|
||||
import { useCallback, useMemo, useState } from 'react';
|
||||
import { useExchanges } from '../hooks/useExchanges';
|
||||
import type { AddProviderMappingDialogState, DeleteDialogState, EditingCell, Exchange } from '../types';
|
||||
|
|
@ -70,7 +70,7 @@ export function ExchangesTable() {
|
|||
);
|
||||
|
||||
const handleRowExpand = useCallback(
|
||||
async (_row: any) => {
|
||||
(_row: Row<Exchange>) => {
|
||||
// Row expansion is now handled automatically by TanStack Table
|
||||
// No need to fetch data since all mappings are already loaded
|
||||
},
|
||||
|
|
@ -319,7 +319,6 @@ export function ExchangesTable() {
|
|||
handleToggleActive,
|
||||
handleAddProviderMapping,
|
||||
handleDeleteExchange,
|
||||
handleConfirmDelete,
|
||||
handleRowExpand,
|
||||
]);
|
||||
|
||||
|
|
@ -335,7 +334,7 @@ export function ExchangesTable() {
|
|||
);
|
||||
}
|
||||
|
||||
const renderSubComponent = ({ row }: { row: any }) => {
|
||||
const renderSubComponent = ({ row }: { row: Row<Exchange> }) => {
|
||||
const exchange = row.original as Exchange;
|
||||
const mappings = exchange.provider_mappings || [];
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue