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