From 85ac795146459c209873586ef0bfdbfbb99f963f Mon Sep 17 00:00:00 2001 From: goncy Date: Mon, 2 Sep 2024 14:11:47 -0300 Subject: [PATCH] Remove scroll on navigation --- src/modules/store/screens/Store.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/modules/store/screens/Store.tsx b/src/modules/store/screens/Store.tsx index ac3b340..c9dd1e3 100644 --- a/src/modules/store/screens/Store.tsx +++ b/src/modules/store/screens/Store.tsx @@ -143,7 +143,7 @@ function StoreScreen({products, selected}: {products: Product[]; selected: null
{categoryProducts.length ? ( categoryProducts.map((product) => ( - + )) @@ -169,10 +169,10 @@ function StoreScreen({products, selected}: {products: Product[]; selected: null router.push("/")} + onClose={() => router.push("/", {scroll: false})} onSubmit={(item) => { addItem(Date.now(), item); - router.push("/"); + router.push("/", {scroll: false}); }} /> )}