Fix : Event scanbarcode

This commit is contained in:
2024-12-04 15:45:55 +08:00
parent 9a9bbe3bd6
commit 5917a1b8d0
6 changed files with 71 additions and 30 deletions

View File

@@ -20,7 +20,7 @@ export default function Event_Beranda({
}: {
dataEvent: MODEL_EVENT[];
}) {
const [data, setData] = useState(dataEvent);
const [data, setData] = useState<MODEL_EVENT[] >([]);
const [activePage, setActivePage] = useState(1);
const [isLoading, setIsLoading] = useState(false);
@@ -76,8 +76,6 @@ export default function Event_Beranda({
setData(val);
},
});
}}
>
Update beranda