|
|
@ -3,18 +3,20 @@ import React from "react"; |
|
|
|
import Calender from "../Calender"; |
|
|
|
import Calender from "../Calender"; |
|
|
|
import Button from "../../ButtonDesign/Button/"; |
|
|
|
import Button from "../../ButtonDesign/Button/"; |
|
|
|
|
|
|
|
|
|
|
|
const CalenderList = ({ buttons }) => { |
|
|
|
const CalenderList = ({ buttons, leftArrow, rightArrow }) => { |
|
|
|
return ( |
|
|
|
return ( |
|
|
|
<div className="flex flex-col bg-white"> |
|
|
|
<div className="flex flex-col bg-white mx-auto"> |
|
|
|
<div className="w-[96%] mx-auto flex flex-row "> |
|
|
|
<div className="w-[96%] mx-auto flex flex-row items-center"> |
|
|
|
{/* right side */} |
|
|
|
{/* right side */} |
|
|
|
<div className=" flex flex-row items-center divide-x-2 divide-surfaceBorder divide-x-reverse"> |
|
|
|
<div className=" flex flex-row items-center divide-x-2 divide-surfaceBorder divide-x-reverse"> |
|
|
|
{/* right side */} |
|
|
|
{/* right side */} |
|
|
|
<div className="flex px-4 flex-row text-primaryText"> |
|
|
|
<div className="flex flex-row items-center px-4 text-primaryText"> |
|
|
|
<span className="text-sm">خرداد</span> |
|
|
|
<img src={rightArrow} class="w-8" alt="right-arrow" /> |
|
|
|
|
|
|
|
<span className="text-sm mx-2">خرداد</span> |
|
|
|
|
|
|
|
<img src={leftArrow} class="w-8" alt="left-arrow" /> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
{/* left side */} |
|
|
|
{/* left side */} |
|
|
|
<div className="flex px-4 flex-row"> |
|
|
|
<div className="flex px-4 flex-row items-center"> |
|
|
|
{buttons.map((button, i) => ( |
|
|
|
{buttons.map((button, i) => ( |
|
|
|
<Button |
|
|
|
<Button |
|
|
|
key={i} |
|
|
|
key={i} |
|
|
@ -47,6 +49,9 @@ const CalenderList = ({ buttons }) => { |
|
|
|
export default CalenderList; |
|
|
|
export default CalenderList; |
|
|
|
|
|
|
|
|
|
|
|
CalenderList.defaultProps = { |
|
|
|
CalenderList.defaultProps = { |
|
|
|
|
|
|
|
leftArrow: "images/CalenderListGroup2496.svg", |
|
|
|
|
|
|
|
rightArrow: "images/CalenderListGroup2495.svg", |
|
|
|
|
|
|
|
|
|
|
|
buttons: [ |
|
|
|
buttons: [ |
|
|
|
{ |
|
|
|
{ |
|
|
|
title: "روز", |
|
|
|
title: "روز", |
|
|
|