From cdaa678d6315b53b56180c9200bb6d77fb2d419f Mon Sep 17 00:00:00 2001 From: mahdi Date: Sat, 11 Jun 2022 10:04:34 +0430 Subject: [PATCH] delete 1 file and update 2 files --- .../ButtonNextToEachOther/index.js | 46 ------------ src/components/ButtonDesign/index.js | 2 - .../Datepicker/CalenderList/index.js | 73 +++++++++++++++---- 3 files changed, 58 insertions(+), 63 deletions(-) delete mode 100644 src/components/ButtonDesign/ButtonNextToEachOther/index.js diff --git a/src/components/ButtonDesign/ButtonNextToEachOther/index.js b/src/components/ButtonDesign/ButtonNextToEachOther/index.js deleted file mode 100644 index ad47d8f..0000000 --- a/src/components/ButtonDesign/ButtonNextToEachOther/index.js +++ /dev/null @@ -1,46 +0,0 @@ -import React from "react"; -import Button from "../Button"; - -const ButtonNextToEachOther = ({ buttons }) => { - return ( -
-
- {buttons.map((button, i) => ( -
-
-
-
- ); -}; - -export default ButtonNextToEachOther; - -ButtonNextToEachOther.defaultProps = { - buttons: [ - { - title: "روز", - className: "rounded-tr-lg rounded-br-lg", - }, - { - title: "هفته", - className: "", - }, - { - title: "ماه", - className: "", - }, - { - title: "سال", - className: "rounded-tl-lg rounded-bl-lg", - }, - ], -}; diff --git a/src/components/ButtonDesign/index.js b/src/components/ButtonDesign/index.js index 5f07818..101a27a 100644 --- a/src/components/ButtonDesign/index.js +++ b/src/components/ButtonDesign/index.js @@ -2,13 +2,11 @@ import React, { useState } from "react"; import Button from "./Button"; import ButtonDivTag from "./ButtonDivTag"; -import ButtonNextToEachOther from "./ButtonNextToEachOther"; function ButtonDesign() { const list = { 1: