diff --git a/firm/src/components/DatePicker.js b/firm/src/components/DatePicker.js
index 05fd26c..fc492b8 100644
--- a/firm/src/components/DatePicker.js
+++ b/firm/src/components/DatePicker.js
@@ -27,7 +27,7 @@ const DatePicker = ({ value, onChange, name, className, minDate, maxDate }) => {
diff --git a/firm/src/components/DodawanieTransakcji.js b/firm/src/components/DodawanieTransakcji.js
index e99c5b0..ac581c6 100644
--- a/firm/src/components/DodawanieTransakcji.js
+++ b/firm/src/components/DodawanieTransakcji.js
@@ -66,7 +66,6 @@ const DodawanieTransakcji = () => {
const handleInputChange = (event) => {
const { name, value } = event.target;
setNewTransaction({ ...newTransaction, [name]: value });
- console.log(`po: ${name}, ${value}`)
};
const handleCancel = () => {
navigate('/transakcje');
diff --git a/firm/src/components/EdycjaTransakcji.js b/firm/src/components/EdycjaTransakcji.js
index 2fb2c33..071052c 100644
--- a/firm/src/components/EdycjaTransakcji.js
+++ b/firm/src/components/EdycjaTransakcji.js
@@ -3,6 +3,7 @@ import axios from "axios";
import { useParams, useNavigate } from "react-router-dom";
import {ReactComponent as MinusIcon} from "../icons/minus-icon.svg"
import Select from "react-select";
+import DatePicker from './DatePicker';
const EdycjaTransakcji = () => {
const { id } = useParams();
@@ -212,12 +213,13 @@ const EdycjaTransakcji = () => {
-
{errors.date && {errors.date}}
diff --git a/firm/src/components/PanelAdministratora.js b/firm/src/components/PanelAdministratora.js
index 2f0cd2b..381ac91 100644
--- a/firm/src/components/PanelAdministratora.js
+++ b/firm/src/components/PanelAdministratora.js
@@ -1,6 +1,7 @@
import React, { useState, useEffect } from 'react';
import axios from 'axios';
import WidokHarmonogramu from './WidokHarmonogramu';
+import DatePicker from './DatePicker';
const PanelAdministratora = () => {
const [selectedOption, setSelectedOption] = useState('harmonogramy');
@@ -164,23 +165,25 @@ const PanelAdministratora = () => {
- setStartDate(e.target.value)}
className="w-full p-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500"
+ maxDate="2099-12-31T23:59"
/>
- setEndDate(e.target.value)}
className="w-full p-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500"
+ maxDate="2099-12-31T23:59"
/>
@@ -261,23 +264,25 @@ const PanelAdministratora = () => {
- setStartDate(e.target.value)}
className="w-full p-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500"
+ maxDate="2099-12-31T23:59"
/>
- setEndDate(e.target.value)}
className="w-full p-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500"
+ maxDate="2099-12-31T23:59"
/>
diff --git a/firm/src/components/Raporty.js b/firm/src/components/Raporty.js
index 7d45d5c..bf0432b 100644
--- a/firm/src/components/Raporty.js
+++ b/firm/src/components/Raporty.js
@@ -1,6 +1,7 @@
import React, { useState, useEffect } from 'react';
import axios from 'axios';
import {ReactComponent as KoszIcon} from '../icons/delete.svg';
+import DatePicker from './DatePicker';
const Raporty = () => {
const [fromDate, setFromDate] = useState('');
@@ -131,23 +132,25 @@ const Raporty = () => {
diff --git a/firm/src/components/Wydatki.js b/firm/src/components/Wydatki.js
index 32e5181..d0db9ce 100644
--- a/firm/src/components/Wydatki.js
+++ b/firm/src/components/Wydatki.js
@@ -1,6 +1,7 @@
import React, { useState, useEffect } from 'react';
import axios from 'axios';
import { ReactComponent as KoszIcon } from '../icons/delete.svg';
+import DatePicker from './DatePicker';
const Wydatki = () => {
const [expenses, setExpenses] = useState([]);
@@ -114,12 +115,13 @@ const Wydatki = () => {