Skip to content

Commit a1c4bd7

Browse files
committed
refactor
1 parent be54a27 commit a1c4bd7

File tree

11 files changed

+18
-19
lines changed

11 files changed

+18
-19
lines changed

src/components/Wrapper/Toolbar.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ import {
2424
useSignUpAllowed,
2525
} from "../../store/hooks";
2626
import {
27-
setLogoutSuccess,
27+
type Role,
2828
Roles,
2929
StaffRoles,
30-
type Role,
30+
setLogoutSuccess,
3131
setRole,
3232
} from "../../store/user/userSlice";
3333
import { ThemeContext } from "../DarkTheme/useTheme";

src/components/XtkViewer/CrvFileSelect.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1+
import type { FileBrowserFolderFile } from "@fnndsc/chrisapi";
12
import {
23
Button,
34
Popover,
45
SimpleList,
56
SimpleListItem,
67
} from "@patternfly/react-core";
78
import { useState } from "react";
8-
import type { FileBrowserFolderFile } from "@fnndsc/chrisapi";
99

1010
interface CrvFileSelectProps {
1111
files: FileBrowserFolderFile[];

src/components/XtkViewer/PrimaryFileSelect.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { SimpleList, SimpleListItem } from "@patternfly/react-core";
21
import type { FileBrowserFolderFile } from "@fnndsc/chrisapi";
2+
import { SimpleList, SimpleListItem } from "@patternfly/react-core";
33

44
interface FsmFileSelectProps {
55
files: FileBrowserFolderFile[];

src/components/XtkViewer/xtk-viewer.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@
8888

8989
.xtk-viewer-wrap .fsm-select-inner {
9090
padding: 20px;
91-
background-color: white;
9291
background-color: lightgray;
9392
width: 30%;
9493
margin: 0 auto;

src/store/cart/cartSlice.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// cartSlice.ts
2-
import { type PayloadAction, createSlice } from "@reduxjs/toolkit";
2+
import { createSlice, type PayloadAction } from "@reduxjs/toolkit";
33
import type {
44
ICartState,
55
OperationPayload,

src/store/explorer/explorerSlice.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1+
import type { FileBrowserFolderFile } from "@fnndsc/chrisapi";
12
import { createSlice, type PayloadAction } from "@reduxjs/toolkit";
23
import type { IExplorerState } from "./types";
3-
import type { FileBrowserFolderFile } from "@fnndsc/chrisapi";
44

55
const initialState: IExplorerState = {
66
selectedFile: undefined,

src/store/feed/feedSlice.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1+
import type { Feed } from "@fnndsc/chrisapi";
12
import { createSlice, type PayloadAction } from "@reduxjs/toolkit";
23
import type { IFeedState } from "./types";
3-
import type { Feed } from "@fnndsc/chrisapi";
44

55
// Define the initial state
66
const initialState: IFeedState = {

src/store/plugin/pluginSlice.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1+
import type { Plugin, PluginParameter } from "@fnndsc/chrisapi";
12
import {
23
createAsyncThunk,
34
createSlice,
45
type PayloadAction,
56
} from "@reduxjs/toolkit";
6-
import type { Plugin, PluginParameter } from "@fnndsc/chrisapi";
77
import { fetchResource } from "../../api/common";
88

99
// Define the initial state

src/store/pluginInstance/pluginInstanceSlice.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import type { Feed, PluginInstance } from "@fnndsc/chrisapi";
22
import {
3-
type PayloadAction,
43
createAsyncThunk,
54
createSlice,
5+
type PayloadAction,
66
} from "@reduxjs/toolkit";
77
import { catchError, fetchResource } from "../../api/common";
88
import type { RootState } from "../root/applicationState";

src/store/root/applicationState.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,16 @@
33
* Description: this is where the ApplicationState and supporting interfaces comes together:
44
* Author: ChRIS UI
55
*/
6+
7+
import type { ICartState } from "../cart/types";
68
import type { IDrawerState } from "../drawer/drawerSlice";
79
import type { IExplorerState } from "../explorer/types";
810
import type { IFeedState } from "../feed/types";
911
import type { IPluginState } from "../plugin/pluginSlice";
1012
import type { IPluginInstanceState } from "../pluginInstance/types";
11-
import type { IUiState } from "../ui/uiSlice";
1213
import type { IUserState } from "../user/userSlice";
13-
import type { ICartState } from "../cart/types";
1414

1515
export interface ApplicationState {
16-
ui: IUiState;
1716
feed: IFeedState;
1817
user: IUserState;
1918
plugin: IPluginState;

0 commit comments

Comments
 (0)