From 7eb9627d2557448f882707b75e0d395df46a1566 Mon Sep 17 00:00:00 2001 From: mahdi Date: Sat, 11 Jun 2022 12:14:02 +0430 Subject: [PATCH] update src/components/Datepicker/Calender/index.js and src/components/Datepicker/CalenderList/index.js --- src/components/Datepicker/Calender/index.js | 9 ++++----- src/components/Datepicker/CalenderList/index.js | 9 ++------- 2 files changed, 6 insertions(+), 12 deletions(-) diff --git a/src/components/Datepicker/Calender/index.js b/src/components/Datepicker/Calender/index.js index 3287f8a..c0f5cbb 100644 --- a/src/components/Datepicker/Calender/index.js +++ b/src/components/Datepicker/Calender/index.js @@ -14,17 +14,16 @@ const weekDays = [ "جمعه", ]; -const Calender = ({ minimumDate, maximumDate, setDate, date }) => { - // const [date, setDate] = useState("1401/03/01"); +const Calender = ({ minimumDate, maximumDate }) => { + const [date, setDate] = useState("1401/01/01"); return (
{ diff --git a/src/components/Datepicker/CalenderList/index.js b/src/components/Datepicker/CalenderList/index.js index e76f123..b2ebc48 100644 --- a/src/components/Datepicker/CalenderList/index.js +++ b/src/components/Datepicker/CalenderList/index.js @@ -5,7 +5,7 @@ import Button from "../../ButtonDesign/Button"; import SearchBox from "../../SearchDesign/SearchBox"; const CalenderList = ({ buttons, leftArrow, rightArrow }) => { - const [date, setDate] = useState("1401/02/01"); + // const [date, setDate] = useState("1401/02/01"); return (
@@ -37,12 +37,7 @@ const CalenderList = ({ buttons, leftArrow, rightArrow }) => {
{/* ? calender list */}
- +