parent
37c3f0fba7
commit
cdaa678d63
3 changed files with 58 additions and 63 deletions
@ -1,46 +0,0 @@ |
|||||||
import React from "react"; |
|
||||||
import Button from "../Button"; |
|
||||||
|
|
||||||
const ButtonNextToEachOther = ({ buttons }) => { |
|
||||||
return ( |
|
||||||
<div className="flex flex-row"> |
|
||||||
<div className="flex flex-row"> |
|
||||||
{buttons.map((button, i) => ( |
|
||||||
<Button |
|
||||||
text={button.title} |
|
||||||
className={`${button.className} w-16 text-primaryText text-lg border border-primary px-4 py-2`} |
|
||||||
/> |
|
||||||
))} |
|
||||||
</div> |
|
||||||
<div className="flex flex-row mr-5"> |
|
||||||
<Button |
|
||||||
text={"امروز"} |
|
||||||
className="text-primaryText text-lg border border-primary rounded-sm px-4 py-2" |
|
||||||
/> |
|
||||||
</div> |
|
||||||
</div> |
|
||||||
); |
|
||||||
}; |
|
||||||
|
|
||||||
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", |
|
||||||
}, |
|
||||||
], |
|
||||||
}; |
|
Loading…
Reference in new issue