Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/components/Pacs/PacsApp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@
* manages effects and state.
*/

import { PageSection } from "@patternfly/react-core";
import config from "config";
import { useEffect, useState } from "react";
import {
genUUID,
getState,
type ThunkModuleToFunc,
useThunk,
} from "react-reducer-utils";
} from "@chhsiao1981/use-thunk";
import { PageSection } from "@patternfly/react-core";
import config from "config";
import { useEffect, useState } from "react";
import { useLocation, useSearchParams } from "react-router-dom";
import { sanitizeAPIRootURL } from "../../api/api.ts";
import type { Lonk, LonkMessageData } from "../../api/lonk/types.ts";
Expand Down
7 changes: 5 additions & 2 deletions src/components/Pacs/PacsView.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import type {
DispatchFuncMap,
ThunkModuleToFunc,
} from "@chhsiao1981/use-thunk";
import { Empty, Flex, Spin, Typography } from "antd";
import type { CSSProperties } from "react";
import type { DispatchFuncMap, ModuleToFunc } from "react-reducer-utils";
import type { PACSqueryCore } from "../../api/pfdcm";
import type * as DoPacs from "../../reducers/pacs";
import PacsInput, {
Expand All @@ -11,7 +14,7 @@ import PacsStudiesView, {
} from "./components/PacsStudiesView.tsx";
import type { PacsState } from "./types.ts";

type TDoPacs = ModuleToFunc<typeof DoPacs>;
type TDoPacs = ThunkModuleToFunc<typeof DoPacs>;

type Props = Pick<PacsInputProps, "services" | "onSubmit"> &
Pick<PacsStudiesViewProps, "expandedStudyUids"> & {
Expand Down
6 changes: 3 additions & 3 deletions src/reducers/pacs.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import config from "config";
import type { ReadonlyNonEmptyArray } from "fp-ts/lib/ReadonlyNonEmptyArray";
import {
init as _init,
type ClassState,
Expand All @@ -8,7 +6,9 @@ import {
type State as rState,
setData,
type Thunk,
} from "react-reducer-utils";
} from "@chhsiao1981/use-thunk";
import config from "config";
import type { ReadonlyNonEmptyArray } from "fp-ts/lib/ReadonlyNonEmptyArray";
import type { Location } from "react-router";
import { STATUS_OK, STATUS_OK_CREATE } from "../api/constants";
import type { SeriesKey } from "../api/lonk";
Expand Down
4 changes: 0 additions & 4 deletions src/routes.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { useEffect, useState } from "react";
import type { ModuleToFunc } from "react-reducer-utils";
import {
matchPath,
useLocation,
Expand All @@ -26,12 +25,9 @@ import {
} from "./components/Routing/RouterContext";
import Signup from "./components/Signup";
import SinglePlugin from "./components/SinglePlugin";
import type * as DoPacs from "./reducers/pacs";
import { useAppDispatch, useAppSelector } from "./store/hooks";
import { setSidebarActive } from "./store/ui/uiSlice";

type TDoPacs = ModuleToFunc<typeof DoPacs>;

interface IState {
selectData?: Series;
}
Expand Down