fixed more lint issues

This commit is contained in:
Boki 2025-06-20 08:27:07 -04:00
parent 43f4429998
commit 5436509ed6
7 changed files with 15 additions and 16 deletions

View file

@ -3,7 +3,7 @@ import { PlusIcon, TrashIcon } from '@heroicons/react/24/outline';
import { ColumnDef } from '@tanstack/react-table';
import { useCallback, useMemo, useState } from 'react';
import { useExchanges } from '../hooks/useExchanges';
import { Exchange, ProviderMapping, EditingCell, AddProviderMappingDialogState, DeleteDialogState } from '../types';
import { Exchange, EditingCell, AddProviderMappingDialogState, DeleteDialogState } from '../types';
import { AddProviderMappingDialog } from './AddProviderMappingDialog';
import { DeleteExchangeDialog } from './DeleteExchangeDialog';
import { sortProviderMappings, getProviderMappingColor, formatProviderMapping, formatDate } from '../utils/formatters';
@ -13,8 +13,7 @@ export function ExchangesTable() {
exchanges,
loading,
error,
updateExchange,
fetchExchangeDetails,
updateExchange,
updateProviderMapping,
createProviderMapping,
refetch
@ -71,7 +70,7 @@ export function ExchangesTable() {
);
const handleRowExpand = useCallback(
async (row: any) => {
async (_row: any) => {
// Row expansion is now handled automatically by TanStack Table
// No need to fetch data since all mappings are already loaded
},
@ -105,7 +104,7 @@ export function ExchangesTable() {
header: 'Code',
accessorKey: 'code',
size: 120,
cell: ({ getValue, row, cell }) => {
cell: ({ getValue, row, cell: _cell }) => {
const isEditing =
editingCell?.id === row.original.id && editingCell?.field === 'code';
@ -148,7 +147,7 @@ export function ExchangesTable() {
header: 'Name',
accessorKey: 'name',
size: 250,
cell: ({ getValue, row, cell }) => {
cell: ({ getValue, row, cell: _cell }) => {
const isEditing =
editingCell?.id === row.original.id && editingCell?.field === 'name';
@ -236,7 +235,7 @@ export function ExchangesTable() {
cell: ({ getValue, row }) => {
const totalMappings = parseInt(getValue() as string) || 0;
const activeMappings = parseInt(row.original.active_mapping_count) || 0;
const verifiedMappings = parseInt(row.original.verified_mapping_count) || 0;
const _verifiedMappings = parseInt(row.original.verified_mapping_count) || 0;
// Get provider mappings directly from the exchange data
const mappings = row.original.provider_mappings || [];