From 83d2c1c0d862d185fef92202c4b1fbbce9e2367f Mon Sep 17 00:00:00 2001
From: TymQa <125615116+TymQa@users.noreply.github.com>
Date: Thu, 25 Jan 2024 18:50:56 +0200
Subject: [PATCH] +
---
src/components/DayDashboard/DayDashboard.jsx | 1 -
src/components/DayExercises/DayExercises.jsx | 4 ++--
src/components/DayProducts/DayProducts.jsx | 5 ++---
src/components/services/services.js | 3 ---
4 files changed, 4 insertions(+), 9 deletions(-)
diff --git a/src/components/DayDashboard/DayDashboard.jsx b/src/components/DayDashboard/DayDashboard.jsx
index 19096f8..781511d 100644
--- a/src/components/DayDashboard/DayDashboard.jsx
+++ b/src/components/DayDashboard/DayDashboard.jsx
@@ -24,7 +24,6 @@ const DayDashboard = () => {
const minutesSpentOnSports = Math.floor(normOfSports);
const restOfSports = Math.floor(normOfSports - minutesSpentOnSports / 60);
- console.log('restOfSports:', restOfSports);
return restOfSports;
};
diff --git a/src/components/DayExercises/DayExercises.jsx b/src/components/DayExercises/DayExercises.jsx
index 4f6955e..fc39c87 100644
--- a/src/components/DayExercises/DayExercises.jsx
+++ b/src/components/DayExercises/DayExercises.jsx
@@ -51,8 +51,8 @@ export const DayExercises = () => {
Execrcises
Add exercise
-
-
+
+
diff --git a/src/components/DayProducts/DayProducts.jsx b/src/components/DayProducts/DayProducts.jsx
index 83bb74b..80d0ce9 100644
--- a/src/components/DayProducts/DayProducts.jsx
+++ b/src/components/DayProducts/DayProducts.jsx
@@ -47,8 +47,8 @@ const DayProducts = () => {
Products
Add product
-
-
+
+
@@ -58,7 +58,6 @@ const DayProducts = () => {
};
export const ProductsTable = ({ products, date }) => {
const dispatch = useDispatch();
- // const isLoading = useSelector(diarySelectors.getIsLoading);
const isLoading = false;
return (
diff --git a/src/components/services/services.js b/src/components/services/services.js
index 5fb553c..c8a4580 100644
--- a/src/components/services/services.js
+++ b/src/components/services/services.js
@@ -100,10 +100,8 @@ export const handleStatisticsFulfilled = (state, { payload }) => {
//--------------------------DIARY
export const handleFulfilled = (state, { payload }) => {
- // console.log('payload', payload);
state.data = payload;
state.isLoading = false;
- console.log(state.data);
};
export const handleFulfilledAddProduct = (state, { payload }) => {
@@ -122,7 +120,6 @@ export const handleFulfilledAddExercise = (state, { payload }) => {
};
export const handleFulfilledDeleteExercise = (state, { payload }) => {
- console.log('payload', payload);
state.data.diary.exercises = state.data.diary.exercises.filter(
(el) => el._id !== payload._id
);