Skip to content

Commit a2dfbd2

Browse files
authored
Merge pull request #3266 from bluewave-labs/fix/cleanup
fix; cleanup
2 parents ac98f78 + 14ba301 commit a2dfbd2

File tree

90 files changed

+202
-7725
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

90 files changed

+202
-7725
lines changed

client/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<div id="root"></div>
1919
<script
2020
type="module"
21-
src="/src/main.jsx"
21+
src="/src/main.tsx"
2222
></script>
2323
</body>
2424
</html>
Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { useEffect } from "react";
1+
import { useEffect, type CSSProperties } from "react";
22
import { useSelector } from "react-redux";
33
import "react-toastify/dist/ReactToastify.css";
44
import { ToastContainer } from "react-toastify";
@@ -7,18 +7,17 @@ import lightTheme from "./Utils/Theme/lightTheme";
77
import darkTheme from "./Utils/Theme/darkTheme";
88
import { CssBaseline, GlobalStyles } from "@mui/material";
99
import { logger } from "./Utils/Logger"; // Import the logger
10-
import { networkService } from "./main";
1110
import { Routes } from "./Routes";
1211
import AppLayout from "@/Components/v1/Layouts/AppLayout";
12+
import type { RootState } from "@/Types/state";
1313

1414
function App() {
15-
const mode = useSelector((state) => state.ui.mode);
15+
const mode = useSelector((state: RootState) => state.ui.mode);
1616

1717
// Cleanup
1818
useEffect(() => {
1919
return () => {
2020
logger.cleanup();
21-
networkService.cleanup();
2221
};
2322
}, []);
2423

@@ -30,6 +29,7 @@ function App() {
3029
<GlobalStyles
3130
styles={{
3231
body: {
32+
// @ts-ignore
3333
backgroundColor: theme.palette.background.main,
3434
},
3535
}}
@@ -40,10 +40,12 @@ function App() {
4040
<ToastContainer
4141
newestOnTop={true}
4242
theme={mode}
43-
style={{
44-
"--toastify-color-progress-light": "#7C8BA1",
45-
"--toastify-color-progress-dark": "#7C8BA1",
46-
}}
43+
style={
44+
{
45+
"--toastify-color-progress-light": "#7C8BA1",
46+
"--toastify-color-progress-dark": "#7C8BA1",
47+
} as CSSProperties
48+
}
4749
/>
4850
</ThemeProvider>
4951
);

client/src/Components/v1/ActionsMenu/index.jsx

Lines changed: 0 additions & 228 deletions
This file was deleted.

client/src/Components/v1/Animated/PulseDot.jsx

Lines changed: 0 additions & 68 deletions
This file was deleted.

client/src/Components/v1/Buttons/RoundGradientButton.jsx

Lines changed: 0 additions & 30 deletions
This file was deleted.

0 commit comments

Comments
 (0)