fix bug panel error && change design dashboard

This commit is contained in:
Ehsan
2024-10-23 19:53:08 +03:30
parent adfe52c531
commit b25289f88e
11 changed files with 22 additions and 15 deletions
@@ -1,10 +1,10 @@
import Item from "./Item";
function Cards({ data, loading }) {
function Cards({ data, loading, changeStatus }) {
return (
<ul className="md:hidden mt-[24px] grid grid-cols-1 sm:grid-cols-2 gap-[16px]">
{data.map((item, idx) => (
<Item data={item} key={idx} />
<Item data={item} key={idx} changeStatus={changeStatus} />
))}
</ul>
);