|
|
|
@ -8,23 +8,23 @@ export function Buttons({ row }) { |
|
|
|
|
const [activeDetails, setActiveDetails] = useState(null); |
|
|
|
|
return ( |
|
|
|
|
<div |
|
|
|
|
className="flex flex-row items-center justify-end " |
|
|
|
|
className="flex flex-row items-center justify-end" |
|
|
|
|
{...row.getToggleRowExpandedProps()} |
|
|
|
|
> |
|
|
|
|
<button |
|
|
|
|
className="flex flex-row items-center justify-around p-2 rounded border border-gray-300 " |
|
|
|
|
className="mx-1 flex flex-row items-center justify-around p-2 rounded border border-gray-300 " |
|
|
|
|
onClick={() => setActiveDetails(!activeDetails)} |
|
|
|
|
> |
|
|
|
|
جزیات |
|
|
|
|
<img |
|
|
|
|
src={arrowIcon} |
|
|
|
|
alt="" |
|
|
|
|
className={`w-3 cursor-pointer mr-2 ${ |
|
|
|
|
className={`mx-1 w-3 cursor-pointer mr-2 ${ |
|
|
|
|
activeDetails ? "rotate-60" : "rotate-90" |
|
|
|
|
}`}
|
|
|
|
|
/> |
|
|
|
|
</button> |
|
|
|
|
<div className="p-2 rounded border border-gray-300 cursor-pointer "> |
|
|
|
|
<div className="mx-1 p-2 rounded border border-gray-300 cursor-pointer "> |
|
|
|
|
<img src={edit} alt="" className="w-4" /> |
|
|
|
|
</div> |
|
|
|
|
<img src={more} alt="" className="w-5 cursor-pointer " /> |
|
|
|
|