Skip to content

Commit

Permalink
Fix additional import sorting warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
smartspot2 committed Oct 9, 2023
1 parent 98e62f9 commit a053b07
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 14 deletions.
5 changes: 4 additions & 1 deletion csm_web/frontend/src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
// Disable order warnings for style imports in this file
/* eslint import/order: ["error", {"warnOnUnassignedImports": false}] */

// Global styles (imported before any components to allow for overrides)
import "./css/base/styles.scss";
import "./css/fontawesome-styles.scss";

import App from "./components/App";
import React from "react";
import { BrowserRouter as Router } from "react-router-dom";
import { createRoot } from "react-dom/client";
import { QueryClient, QueryClientProvider } from "@tanstack/react-query";

import { ReactQueryDevtools } from "@tanstack/react-query-devtools";
import App from "./components/App";

// react-query setup
const queryClient = new QueryClient({
Expand Down
2 changes: 1 addition & 1 deletion csm_web/frontend/src/tests/LoadingSpinner.test.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from "react";
import { render } from "@testing-library/react";
import React from "react";
import LoadingSpinner from "../components/LoadingSpinner";

describe("LoadingSpinner", () => {
Expand Down
4 changes: 2 additions & 2 deletions csm_web/frontend/src/tests/Modal.test.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from "react";
import { fireEvent, render } from "@testing-library/react";
import Modal, { ModalCloser } from "../components/Modal";
import React from "react";
import { act } from "react-dom/test-utils";
import Modal, { ModalCloser } from "../components/Modal";

/**
* Returns a test Modal component.
Expand Down
2 changes: 1 addition & 1 deletion csm_web/frontend/src/tests/utils.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from "react";
import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
import React from "react";

export const testQueryClient = new QueryClient({
defaultOptions: {
Expand Down
11 changes: 2 additions & 9 deletions csm_web/frontend/src/utils/queries/matcher.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,8 @@
* Query hooks regarding the matcher.
*/

import {
QueryClient,
useMutation,
UseMutationResult,
useQuery,
useQueryClient,
UseQueryResult
} from "@tanstack/react-query";
import { Assignment, Slot } from "../../components/enrollment_automation/EnrollmentAutomationTypes";
import { useMutation, UseMutationResult, useQuery, useQueryClient, UseQueryResult } from "@tanstack/react-query";
import { Assignment } from "../../components/enrollment_automation/EnrollmentAutomationTypes";
import { fetchNormalized, fetchWithMethod, HTTP_METHODS } from "../api";
import { Mentor } from "../types";
import { handleError, handlePermissionsError, handleRetry, PermissionError, ServerError } from "./helpers";
Expand Down

0 comments on commit a053b07

Please sign in to comment.