Skip to content

Commit

Permalink
- More updates and linting
Browse files Browse the repository at this point in the history
  • Loading branch information
sophia-massie committed Oct 29, 2024
1 parent ac4f7d0 commit daf0dd3
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 9 deletions.
Empty file.
8 changes: 2 additions & 6 deletions react/src/components/DeleteMapModal/DeleteMapModal.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,19 +36,15 @@ jest.mock('react-router-dom', () => ({
const toggleMock = jest.fn();
const queryClient = new QueryClient();

const renderComponent = async (
projectId = 123,
projectName = 'Sample Project'
) => {
const renderComponent = async () => {
await act(async () => {
render(
<Provider store={store}>
<QueryClientProvider client={queryClient}>
<Router>
<DeleteMapModal
isOpen={true}
toggle={toggleMock}
projectId={projectMock.id}
close={toggleMock}
project={projectMock}
/>
</Router>
Expand Down
4 changes: 2 additions & 2 deletions react/src/components/DeleteMapModal/DeleteMapModal.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { useState } from 'react';
import React from 'react';
import { Modal, ModalHeader, ModalBody, ModalFooter } from 'reactstrap';
import { Button, SectionMessage } from '../../core-components';
import { Button, SectionMessage } from '@tacc/core-components';
import styles from './DeleteMapModal.module.css';

Check failure on line 4 in react/src/components/DeleteMapModal/DeleteMapModal.tsx

View workflow job for this annotation

GitHub Actions / React-Linting

'styles' is defined but never used
import { Project } from '../../types';
import { useDeleteProject } from '../../hooks/projects/';
Expand Down
2 changes: 1 addition & 1 deletion react/src/components/Projects/ProjectListing.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { useState } from 'react';
import { useProjectsWithDesignSafeInformation } from '@hazmapper/hooks';
import { Button, LoadingSpinner, Icon } from '@tacc/core-components';
import { Button, LoadingSpinner } from '@tacc/core-components';
import CreateMapModal from '../CreateMapModal/CreateMapModal';
import DeleteMapModal from '../DeleteMapModal/DeleteMapModal';
import { Project } from '../../types';
Expand Down

0 comments on commit daf0dd3

Please sign in to comment.