This commit is contained in:
shafi54 2026-02-06 21:24:27 +05:30
parent 3d44171f06
commit 9ac19b0a87
2 changed files with 6 additions and 3 deletions

View file

@ -9,6 +9,7 @@ import { trpc } from '@/src/trpc-client';
import { useAddToCart, useGetCart, useUpdateCartItem } from '@/hooks/cart-query-hooks'; import { useAddToCart, useGetCart, useUpdateCartItem } from '@/hooks/cart-query-hooks';
import { useGetEssentialConsts } from '@/src/api-hooks/essential-consts.api'; import { useGetEssentialConsts } from '@/src/api-hooks/essential-consts.api';
import dayjs from 'dayjs'; import dayjs from 'dayjs';
import { SafeAreaView } from 'react-native-safe-area-context';
export default function AddToCartDialog() { export default function AddToCartDialog() {
const router = useRouter(); const router = useRouter();
@ -120,6 +121,7 @@ export default function AddToCartDialog() {
return ( return (
<BottomDialog open={isOpen} onClose={clearAddedToCartProduct}> <BottomDialog open={isOpen} onClose={clearAddedToCartProduct}>
<SafeAreaView>
<View style={tw`p-6 max-h-[650px]`}> <View style={tw`p-6 max-h-[650px]`}>
<View style={tw`flex-row items-center mb-2`}> <View style={tw`flex-row items-center mb-2`}>
<View style={tw`w-10 h-10 bg-blue-50 rounded-full items-center justify-center mr-3`}> <View style={tw`w-10 h-10 bg-blue-50 rounded-full items-center justify-center mr-3`}>
@ -195,7 +197,7 @@ export default function AddToCartDialog() {
/> />
</View> </View>
<View style={tw`flex-row gap-3 mt-4`}> <View style={tw`flex-row gap-3 mt-4 pb-12`}>
<MyTouchableOpacity <MyTouchableOpacity
style={tw`flex-1 bg-brand500 py-3.5 rounded-xl items-center ${(!selectedSlotId && !selectedFlashDelivery) ? 'opacity-50' : ''}`} style={tw`flex-1 bg-brand500 py-3.5 rounded-xl items-center ${(!selectedSlotId && !selectedFlashDelivery) ? 'opacity-50' : ''}`}
onPress={handleAddToCart} onPress={handleAddToCart}
@ -213,6 +215,7 @@ export default function AddToCartDialog() {
</MyTouchableOpacity> </MyTouchableOpacity>
</View> </View>
</View> </View>
</SafeAreaView>
</BottomDialog> </BottomDialog>
); );
} }

View file

@ -63,8 +63,8 @@ const isDevMode = Constants.executionEnvironment !== "standalone";
// const BASE_API_URL = API_URL; // const BASE_API_URL = API_URL;
// const BASE_API_URL = 'http://10.0.2.2:4000'; // const BASE_API_URL = 'http://10.0.2.2:4000';
// const BASE_API_URL = 'http://192.168.100.101:4000'; // const BASE_API_URL = 'http://192.168.100.101:4000';
const BASE_API_URL = 'http://192.168.1.3:4000'; // const BASE_API_URL = 'http://192.168.1.3:4000';
// let BASE_API_URL = "https://mf.freshyo.in"; let BASE_API_URL = "https://mf.freshyo.in";
// let BASE_API_URL = 'http://192.168.100.104:4000'; // let BASE_API_URL = 'http://192.168.100.104:4000';
// let BASE_API_URL = 'http://192.168.29.176:4000'; // let BASE_API_URL = 'http://192.168.29.176:4000';