final flow
This commit is contained in:
parent
b016abdba2
commit
db7a8e9140
@ -82,7 +82,6 @@ export function App() {
|
||||
<Cart
|
||||
products={products}
|
||||
days={initialData.days}
|
||||
excess={initialData.excess ?? 0}
|
||||
isComplete={isCartComplete}
|
||||
isLoading={isCartLoading}
|
||||
onProductsChange={(valueOrArrUpdater) => {
|
||||
|
||||
@ -13,7 +13,6 @@ import {useGlobalZustandState} from "../../hooks/useGlobalZustandState";
|
||||
interface CartProps {
|
||||
products: Product[];
|
||||
days: number;
|
||||
excess: number;
|
||||
isComplete: boolean;
|
||||
isLoading: boolean;
|
||||
onProductsChange: Dispatch<SetStateAction<Product[]>>;
|
||||
@ -24,7 +23,6 @@ interface CartProps {
|
||||
export function Cart({
|
||||
products,
|
||||
days,
|
||||
excess,
|
||||
isComplete,
|
||||
isLoading,
|
||||
onProductsChange,
|
||||
@ -36,7 +34,7 @@ export function Cart({
|
||||
const [selectedProduct, setSelectedProduct] = useState<Product | null>(null);
|
||||
const [processingProductName, setProcessingProductName] = useState<string | null>(null);
|
||||
|
||||
const {showFullRefreshButton} = useGlobalZustandState((state) => state);
|
||||
const {showFullRefreshButton, excess} = useGlobalZustandState((state) => state);
|
||||
|
||||
const visibleProducts = products.slice(0, visibleCount);
|
||||
const remaining = products.length - visibleProducts.length;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user