Skip to content

Commit

Permalink
feat: minor-cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
PintoGideon committed Oct 18, 2024
1 parent b911366 commit 5be5601
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 14 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@
"@cornerstonejs/streaming-image-volume-loader": "^1.84.4",
"@cornerstonejs/tools": "^1.84.4",
"@fnndsc/chrisapi": "^1.22.0",
"@fontsource/inter": "^5.0.20",
"@niivue/niivue": "0.44.2",
"@patternfly/react-catalog-view-extension": "^5.0.0",
"@patternfly/react-charts": "^7.4.0",
Expand Down
5 changes: 3 additions & 2 deletions src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
import "./app.css";
import "@patternfly/react-core/dist/styles/base.css";
import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
import { ConfigProvider, App as AntdApp, theme } from "antd";
import { App as AntdApp, ConfigProvider, theme } from "antd";
import { useContext } from "react";
import { CookiesProvider } from "react-cookie";
import { Provider } from "react-redux";
import { BrowserRouter } from "react-router-dom";
//@ts-ignore
import useAckee from "use-ackee";
import "./app.css";

import { ThemeContext } from "./components/DarkTheme/useTheme";
import "./components/Feeds/Feeds.css";
import type { EnhancedStore } from "@reduxjs/toolkit";
Expand Down
10 changes: 0 additions & 10 deletions src/app.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
body {
font-family: "Inter";
}

.dcm-preview {
position: relative;
height: 100%;
Expand Down Expand Up @@ -86,9 +82,3 @@ body {
align-items: center !important;
}

.patternfly-font {

This comment has been minimized.

Copy link
@jennydaman

jennydaman Oct 19, 2024

Collaborator

This was a workaround I added to fix situations where patternfly elements would break due to antd css. I suggest adding it back until we have fully removed all patternfly components from under the antd <App> component.

font-family: var(--pf-v5-global--FontFamily--text);
font-size: var(--pf-v5-global--FontSize--md);
line-height: var(--pf-v5-global--LineHeight--md);
font-weight: var(--pf-v5-global--FontWeight--normal);
}
1 change: 0 additions & 1 deletion src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import ReactDOM from "react-dom/client";
import App from "./App.tsx";
import { setupStore } from "./store/configureStore.ts";
import { ThemeContextProvider } from "./components/DarkTheme/useTheme.tsx";
import "@fontsource/inter/400.css"; // Defaults to weight 400.
import { enableMapSet } from "immer";

enableMapSet();
Expand Down

0 comments on commit 5be5601

Please sign in to comment.