Fix linting WIP

This commit is contained in:
Atef Bellaaj 2025-06-23 19:55:59 +02:00 committed by Danny Avila
parent 4c40469951
commit 37c423eb00
No known key found for this signature in database
GPG key ID: BF31EEB2C5CA0956
6 changed files with 7 additions and 25 deletions

View file

@ -17,7 +17,7 @@ import { useToast } from '~/hooks';
import { Dialog, DialogContent, Button } from '~/components/ui';
import { DotsIcon } from '~/components/svg';
import { renderAgentAvatar } from '~/utils/agents';
import { Query, useQueryClient } from '@tanstack/react-query';
import { useQueryClient } from '@tanstack/react-query';
interface AgentDetailProps {
agent: AgentWithSupport; // The agent data to display

View file

@ -7,7 +7,7 @@ import { useAgentCategories } from '~/hooks/Agents';
import useLocalize from '~/hooks/useLocalize';
import { Button } from '~/components/ui';
import { Spinner } from '~/components/svg';
import { SmartLoader, useHasData } from './SmartLoader';
import { useHasData } from './SmartLoader';
import ErrorDisplay from './ErrorDisplay';
import AgentCard from './AgentCard';
import { cn } from '~/utils';

View file

@ -285,7 +285,7 @@ export default function AgentPanel({
}
return canEdit;
}, [agentQuery.data?.id, user?.id, user?.role, canEdit]);
}, [agentQuery.data?.id, user?.role, canEdit]);
return (
<FormProvider {...methods}>

View file

@ -1,5 +1,5 @@
import React from 'react';
import { render, screen, fireEvent, waitFor } from '@testing-library/react';
import { render, screen, fireEvent } from '@testing-library/react';
import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
import CategoryTabs from '../CategoryTabs';
import AgentGrid from '../AgentGrid';
@ -46,12 +46,7 @@ jest.mock(
return translations[key] || key;
}),
);
jest.mock('~/hooks/Agents', () => ({
useDynamicAgentQuery: jest.fn(),
}));
const { useDynamicAgentQuery } = require('~/hooks/Agents');
const useDynamicAgentQuery = jest.fn();
// Create wrapper with QueryClient
const createWrapper = () => {
@ -418,5 +413,3 @@ describe('Accessibility Improvements', () => {
});
});
});
export default {};