diff --git a/src/components/ButtonBetween/index.js b/src/components/ButtonBetween/index.js index 36bb3ec..be9ec0c 100644 --- a/src/components/ButtonBetween/index.js +++ b/src/components/ButtonBetween/index.js @@ -1,14 +1,39 @@ import React from "react"; import { connect } from "react-redux"; -export const ButtonBetween = ({ item, status, onClick, width }) => { - return ( +export const ButtonBetween = ({ item, status, onClick, width, active, toggle }) => { + return toggle ? ( + ) : ( + + active={activeDate === time} + toggle={true} + /> ) : ( + item={"ارسال با" + " " + method.name} + status={separate(method.price) + " " + "تومان"} + active={active} + toggle={true} + /> ) : (