Skip to content

Commit 87f5932

Browse files
authored
Merge pull request #1103 from the-hideout/use-mui-controls
Use MUI Switch and Slider controls
2 parents 6e2d6d6 + 9bd2c4b commit 87f5932

File tree

21 files changed

+304
-268
lines changed

21 files changed

+304
-268
lines changed

package-lock.json

Lines changed: 48 additions & 92 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"@mdi/js": "^7.4.47",
3434
"@mdi/react": "^1.6.1",
3535
"@mui/lab": "^7.0.0-beta.12",
36-
"@mui/material": "^7.0.1",
36+
"@mui/material": "^7.1.1",
3737
"@mui/x-tree-view": "^8.5.0",
3838
"@reduxjs/toolkit": "^2.8.2",
3939
"@tanstack/react-query": "^5.79.0",
@@ -54,7 +54,6 @@
5454
"leaflet-fullscreen": "^1.0.2",
5555
"lodash.debounce": "^4.0.8",
5656
"lz-string": "^1.5.0",
57-
"rc-slider": "^11.1.8",
5857
"react": "^18.3.1",
5958
"react-cookie-consent": "^9.0.0",
6059
"react-countdown": "^2.3.6",
@@ -71,7 +70,6 @@
7170
"react-select": "^5.10.1",
7271
"react-simple-image-viewer": "1.2.2",
7372
"react-spinners": "^0.17.0",
74-
"react-switch": "^7.1.0",
7573
"react-syntax-highlighter": "^15.6.1",
7674
"react-table": "^7.8.0",
7775
"react-zoom-pan-pinch": "^3.7.0",

src/App.css

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -271,14 +271,6 @@ div.tippy-box[data-placement^='right'] > .tippy-arrow::before {
271271
opacity: 0.4;
272272
}
273273

274-
.rc-slider-mark-text {
275-
color: rgb( from var(--color-gold-one) r g b / 0.8) !important;
276-
}
277-
278-
.rc-slider-mark-text-active {
279-
color: rgb( from var(--color-gold-one) r g b/ 1) !important;
280-
}
281-
282274
/* Global reuseable styles, specific to the Tarkov.Dev style */
283275
.information-section {
284276
background: rgb( from var(--color-black) r g b / 0.1);

src/App.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@ import { Helmet } from 'react-helmet';
55
import { useDispatch, useSelector } from 'react-redux';
66
import CookieConsent from "react-cookie-consent";
77
import { ErrorBoundary } from "react-error-boundary";
8+
import { ThemeProvider } from '@mui/material/styles';
89

910
import './App.css';
11+
import theme from './modules/mui-theme.mjs';
1012

1113
import i18n from './i18n.js';
1214
import loadPolyfills from './modules/polyfills.js';
@@ -332,6 +334,7 @@ function App() {
332334
const alternateLangs = supportedLanguages.filter(lang => lang !== i18n.language);
333335

334336
return (
337+
<ThemeProvider theme={theme}>
335338
<div className="App">
336339
<Helmet htmlAttributes={{ lang: i18n.language }}>
337340
<meta property="og:locale" content={i18n.language} key="meta-locale" />
@@ -970,6 +973,7 @@ function App() {
970973
</ErrorBoundary>
971974
<Footer />
972975
</div>
976+
</ThemeProvider>
973977
);
974978
}
975979

src/components/filter/index.css

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,6 @@
7070
flex-grow: 1;
7171
}
7272

73-
.single-filter-label {
74-
margin-right: 10px;
75-
}
76-
7773
.filter-input-wrapper {
7874
display: flex;
7975
align-items: center;
@@ -103,7 +99,7 @@
10399
color: var(--color-gunmetal-dark);
104100
}
105101

106-
.rc-slider {
102+
.filter-slider-wrapper .MuiSlider-root {
107103
margin-left: 20px;
108104
}
109105

0 commit comments

Comments
 (0)