acp listings sync
This commit is contained in:
1 parent
631942bb41
commit
dfc783c936
7 files changed
+33
-13
No files matched your search
@@ -70,9 +70,9 @@ function Home() {
|
||||
const offers = useSelector((state: State) => state.acpOffers);
|
||||
const ws = useSelector((state: State) => state.ws);
|
||||
|
||||
// useEffect(() => {
|
||||
// ws.sendAcpOffers();
|
||||
// }, [offers, ws]);
|
||||
function sync() {
|
||||
ws.sendAcpListingsSync();
|
||||
}
|
||||
|
||||
if (!offers.length) {
|
||||
return (
|
||||
@@ -83,8 +83,12 @@ function Home() {
|
||||
}
|
||||
|
||||
return (
|
||||
<div class='bundles'>
|
||||
{offers.map(SellerGroup)}
|
||||
<div>
|
||||
<button onClick={sync}> sync listings </button>
|
||||
<hr />
|
||||
<div class='bundles'>
|
||||
{offers.map(SellerGroup)}
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user