enhance bottom sheets styles
This commit is contained in:
@@ -51,13 +51,6 @@ export function EqualltyChoiceBottomSheet({
|
||||
return 0;
|
||||
}, [grandTotal, totalPeople, payFor]);
|
||||
|
||||
// Update splitBillAmount when values change
|
||||
useEffect(() => {
|
||||
if (isOpen && splitAmount > 0) {
|
||||
dispatch(updateSplitBillAmount(splitAmount));
|
||||
}
|
||||
}, [isOpen, splitAmount, dispatch]);
|
||||
|
||||
const handleSave = () => {
|
||||
dispatch(updateSplitBillAmount(splitAmount));
|
||||
onClose();
|
||||
@@ -68,6 +61,8 @@ export function EqualltyChoiceBottomSheet({
|
||||
onRemoveSplitWay?.();
|
||||
onClose();
|
||||
};
|
||||
|
||||
console.log(grandTotal);
|
||||
|
||||
return (
|
||||
<ProBottomSheet
|
||||
@@ -76,8 +71,8 @@ export function EqualltyChoiceBottomSheet({
|
||||
title={t("splitBill.divideTheBillEqually")}
|
||||
showCloseButton={true}
|
||||
initialSnap={1}
|
||||
height={600}
|
||||
snapPoints={[600]}
|
||||
height={810}
|
||||
snapPoints={[810]}
|
||||
>
|
||||
<div
|
||||
style={{
|
||||
|
||||
Reference in New Issue
Block a user