enh
This commit is contained in:
parent
04ea8c9284
commit
1dca7a3454
4 changed files with 41 additions and 4 deletions
|
|
@ -1,6 +1,6 @@
|
|||
ENV_MODE=PROD
|
||||
DATABASE_URL=postgresql://postgres:meatfarmer_master_password@57.128.212.174:7447/meatfarmer #technocracy
|
||||
# DATABASE_URL=postgres://postgres:meatfarmer_master_password@5.223.55.14:7447/meatfarmer #hetzner
|
||||
# DATABASE_URL=postgresql://postgres:meatfarmer_master_password@57.128.212.174:7447/meatfarmer #technocracy
|
||||
DATABASE_URL=postgres://postgres:meatfarmer_master_password@5.223.55.14:7447/meatfarmer #hetzner
|
||||
PHONE_PE_BASE_URL=https://api-preprod.phonepe.com/
|
||||
PHONE_PE_CLIENT_ID=TEST-M23F2IGP34ZAR_25090
|
||||
PHONE_PE_CLIENT_VERSION=1
|
||||
|
|
|
|||
|
|
@ -35,10 +35,30 @@ const StoreCard = ({
|
|||
|
||||
const navigateToStore = () => router.push(`/(drawer)/(tabs)/stores/store-detail/${item.id}`);
|
||||
|
||||
const isMeatStore = item.name.toLowerCase().includes('meat');
|
||||
const ASSETS_BASE_URL = 'http://localhost:4000/assets';
|
||||
|
||||
return (
|
||||
<View
|
||||
style={tw`bg-white rounded-[24px] mb-4 shadow-lg shadow-slate-200 border border-slate-200 overflow-hidden`}
|
||||
>
|
||||
{/* Meat Store Images - Show at top if store name contains 'meat' */}
|
||||
{isMeatStore && (
|
||||
<View style={tw`flex-row h-16`}>
|
||||
<Image
|
||||
source={{ uri: `${ASSETS_BASE_URL}/halal.jpg` }}
|
||||
style={tw`flex-1 h-full`}
|
||||
contentFit="cover"
|
||||
/>
|
||||
<View style={tw`w-px bg-white`} />
|
||||
<Image
|
||||
source={{ uri: `${ASSETS_BASE_URL}/preservs.jpg` }}
|
||||
style={tw`flex-1 h-full`}
|
||||
contentFit="cover"
|
||||
/>
|
||||
</View>
|
||||
)}
|
||||
|
||||
{/* Top Header Section - Touchable */}
|
||||
<MyTouchableOpacity
|
||||
onPress={navigateToStore}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
import React, { useState } from "react";
|
||||
import { View, Dimensions, ScrollView, TouchableOpacity } from "react-native";
|
||||
import { useRouter, useLocalSearchParams } from "expo-router";
|
||||
import { Image } from 'expo-image';
|
||||
import {
|
||||
theme,
|
||||
tw,
|
||||
|
|
@ -141,6 +142,22 @@ export default function StoreDetail() {
|
|||
contentContainerStyle={[tw`px-4 pb-24`, { gap: 16 }]}
|
||||
ListHeaderComponent={
|
||||
<View style={tw`pt-4 pb-6`}>
|
||||
{/* Meat Store Images - Show at top if store name contains 'meat' */}
|
||||
{storeData?.store?.name?.toLowerCase().includes('meat') && (
|
||||
<View style={tw`flex-row h-16 mb-4`}>
|
||||
<Image
|
||||
source={{ uri: 'http://localhost:4000/assets/halal.jpg' }}
|
||||
style={tw`flex-1 h-full`}
|
||||
contentFit="cover"
|
||||
/>
|
||||
<View style={tw`w-px bg-white`} />
|
||||
<Image
|
||||
source={{ uri: 'http://localhost:4000/assets/preservs.jpg' }}
|
||||
style={tw`flex-1 h-full`}
|
||||
contentFit="cover"
|
||||
/>
|
||||
</View>
|
||||
)}
|
||||
<View
|
||||
style={tw`bg-white p-6 rounded-2xl shadow-sm border border-gray-100 items-center`}
|
||||
>
|
||||
|
|
|
|||
|
|
@ -63,8 +63,8 @@ const isDevMode = Constants.executionEnvironment !== "standalone";
|
|||
// const BASE_API_URL = API_URL;
|
||||
// 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.105:4000';
|
||||
// let BASE_API_URL = "https://mf.freshyo.in";
|
||||
// const BASE_API_URL = 'http://192.168.100.105:4000';
|
||||
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.29.176:4000';
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue