Bug fix.
This commit is contained in:
parent
490130a9d5
commit
ebc11a82be
12
src/App.js
12
src/App.js
|
@ -26,7 +26,7 @@ function App() {
|
|||
[lightMode, setLightMode] = useState(localStorage.getItem('light-mode') === 'true');
|
||||
|
||||
function SetLoader(x) {
|
||||
setLoader(x)
|
||||
setLoader(x);
|
||||
}
|
||||
|
||||
function handleNameCheckbox() {
|
||||
|
@ -82,16 +82,6 @@ function App() {
|
|||
setNumberOfResults(filteredData.length);
|
||||
}, [filteredData]);
|
||||
|
||||
// useEffect(() => {
|
||||
// const isLight = localStorage.getItem("light-mode");
|
||||
|
||||
// if (JSON.parse(isLight)) {
|
||||
// setLightMode(true);
|
||||
// } else {
|
||||
// setLightMode(false);
|
||||
// }
|
||||
// }, []);
|
||||
|
||||
useEffect(() => {
|
||||
if (lightMode) {
|
||||
document.body.classList.add("light");
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
module.exports = {
|
||||
"API": {
|
||||
"ADDRESS": "http://localhost",
|
||||
"ADDRESS": "http://192.168.1.7",
|
||||
"PORT": 5000,
|
||||
"MONGODB_URI": "mongodb://localhost:27017",
|
||||
"DB_NAME": "sample_db",
|
||||
|
|
|
@ -12,7 +12,7 @@ body {
|
|||
}
|
||||
|
||||
*::selection {
|
||||
background-color: rgba(120, 120, 120, 0.9);
|
||||
background-color: rgba(78, 78, 78, 0.9);
|
||||
color: white;
|
||||
text-shadow: none;
|
||||
}
|
||||
|
|
Ŝarĝante…
Reference in New Issue