master
mahdi andalib 3 years ago
parent f9460adcf9
commit 7a189071e8
  1. 6
      src/components/ReactTable4/Buttons.js
  2. 4
      src/components/ReactTable4/EditButtons.js

@ -12,19 +12,19 @@ export function Buttons({ row }) {
{...row.getToggleRowExpandedProps()} {...row.getToggleRowExpandedProps()}
> >
<button <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)} onClick={() => setActiveDetails(!activeDetails)}
> >
جزیات جزیات
<img <img
src={arrowIcon} src={arrowIcon}
alt="" alt=""
className={`w-3 cursor-pointer mr-2 ${ className={`mx-1 w-3 cursor-pointer mr-2 ${
activeDetails ? "rotate-60" : "rotate-90" activeDetails ? "rotate-60" : "rotate-90"
}`} }`}
/> />
</button> </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" /> <img src={edit} alt="" className="w-4" />
</div> </div>
<img src={more} alt="" className="w-5 cursor-pointer " /> <img src={more} alt="" className="w-5 cursor-pointer " />

@ -12,7 +12,7 @@ export function EditButtons({}) {
<div className="flex flex-row items-center justify-end"> <div className="flex flex-row items-center justify-end">
{/* add new row */} {/* add new row */}
<button <button
className=" flex flex-row items-center p-2 text-xs text-white rounded border-b-2 border-blue-600" className="mx-1 flex flex-row items-center p-2 text-xs text-white rounded border-b-2 border-blue-600"
style={{ backgroundColor: "#65A9FF" }} style={{ backgroundColor: "#65A9FF" }}
> >
ثبت جدید ثبت جدید
@ -22,7 +22,7 @@ export function EditButtons({}) {
<img <img
src={filter} src={filter}
alt="" alt=""
className={`p-2 rounded border border-blue-300 cursor-pointer w-8 ${ className={`mx-1 p-2 rounded border border-blue-300 cursor-pointer w-8 ${
activeFilter ? "border" : "border-0" activeFilter ? "border" : "border-0"
}`} }`}
onClick={() => setActiveFilter(!activeFilter)} onClick={() => setActiveFilter(!activeFilter)}

Loading…
Cancel
Save