diff --git a/src/App.js b/src/App.js
index 742495d..3d821b9 100644
--- a/src/App.js
+++ b/src/App.js
@@ -171,7 +171,7 @@ function App() {
{/* */}
{/* */}
{/* */}
- {/* */}
+
{/*
diff --git a/src/components/DateRangePicker/index.js b/src/components/DateRangePicker/index.js
index ecbe741..2cd98c2 100644
--- a/src/components/DateRangePicker/index.js
+++ b/src/components/DateRangePicker/index.js
@@ -37,7 +37,7 @@ function CustomRangeInput({ openCalendar, value }) {
// let from = value[0] || "";
// let to = value[1] || "";
- value = from && to ? "از " + from + "، تا " + to": from
+ // value = from && to ? "از " + from + "، تا " + to": from
useEffect(() => {
openCalendar();
}, []);
diff --git a/src/components/TestComponentNew/index.js b/src/components/TestComponentNew/index.js
index 80a509e..67925f3 100644
--- a/src/components/TestComponentNew/index.js
+++ b/src/components/TestComponentNew/index.js
@@ -1,4 +1,4 @@
-import React, { useRef, useState } from "react";
+import React, { useState, useEffect } from "react";
import "./index.scss";
@@ -8,7 +8,52 @@ import DatePicker from "react-multi-date-picker";
import persian from "react-date-object/calendars/persian";
import persian_fa from "react-date-object/locales/persian_fa";
+//بهتره که این آرایه خارج از کامپوننت اصلی قرار داده بشه.
+const weekDays = [
+ "شنبه",
+ "یکشنبه",
+ "دوشنبه",
+ "سشنبه",
+ "چهارشنبه",
+ "پنجشنبه",
+ "جمعه",
+];
+
+function DisablePassedDaies({ direction, handleClick, disabled }) {
+ return (
+
+ {direction === "right" ? ">" : "<"}
+
+ );
+}
+
+function CustomRangeInput({ openCalendar, value }) {
+ // let from = value[0] || "";
+ // let to = value[1] || "";
+
+ // value = from && to ? "از " + from + "، تا " + to": from
+ useEffect(() => {
+ openCalendar();
+ }, []);
+
+ return (
+
+
+
+
+ );
+}
const TestComponentNew = () => {
+ const [shouldOpenCalendar, setShouldOpenCalendar] = useState(false);
+
return (
{
false}
arrow={false}
+ minDate={new Date()}
+ renderButton={}
+ render={}
+ weekDays={weekDays}
inputClass="custom-input"
className="custom-calendar"
style={{