diff --git a/.env b/.env index 995ef99..3a4bd11 100644 --- a/.env +++ b/.env @@ -17,11 +17,11 @@ # old working .env file # Production Dev -EXPO_PUBLIC_API_URL=https://api.acupedia.in/api -EXPO_PUBLIC_STOREFRONT_URL=https://acupedia.in/store -EXPO_PUBLIC_CONTENT_PREVIEW_ENABLED=true +# EXPO_PUBLIC_API_URL=https://api.acupedia.in/api +# EXPO_PUBLIC_STOREFRONT_URL=https://acupedia.in/store +# EXPO_PUBLIC_CONTENT_PREVIEW_ENABLED=true # Local Dev -# EXPO_PUBLIC_API_URL=http://localhost:8000/api -# EXPO_PUBLIC_STOREFRONT_URL=http://localhost:3000 -# EXPO_PUBLIC_CONTENT_PREVIEW_ENABLED=true \ No newline at end of file +EXPO_PUBLIC_API_URL=http://localhost:8000/api +EXPO_PUBLIC_STOREFRONT_URL=http://localhost:3000 +EXPO_PUBLIC_CONTENT_PREVIEW_ENABLED=true \ No newline at end of file diff --git a/src/app/settings/help-support.tsx b/src/app/settings/help-support.tsx index af463cb..9f4afb7 100644 --- a/src/app/settings/help-support.tsx +++ b/src/app/settings/help-support.tsx @@ -7,6 +7,7 @@ import { TouchableOpacity, Alert, Linking, + Platform, } from "react-native"; import { SafeAreaView } from "react-native-safe-area-context"; import { Ionicons } from "@expo/vector-icons"; @@ -20,6 +21,8 @@ interface FAQ { answer: string; } +const SUPPORT_EMAIL = "support@acupedia.in"; + const FAQS: FAQ[] = [ { question: "What is Acupedia?", @@ -29,22 +32,37 @@ const FAQS: FAQ[] = [ { question: "How do I unlock additional clinical modules?", answer: - "You can unlock full clinical libraries and specialized modules by visiting the Subscription tab or selecting any locked module to view tier plans.", + "You can unlock full clinical libraries and specialized modules by selecting any locked module in the Library to view available tier plans, or by visiting the Acupedia Web Store.", + }, + { + question: "Can I use Acupedia without an internet connection?", + answer: + "Recently viewed points and clinical content remain temporarily cached on your device during your session. An active internet connection is recommended for full search, media zoom diagrams, and discovering new modules.", + }, + { + question: "Why can't I take screenshots or record the screen?", + answer: + "For clinical content protection and intellectual property security, screenshot capture and screen recording are restricted on mobile devices.", + }, + { + question: "Can I use my subscription on multiple devices?", + answer: + "Yes, you can log in to your Acupedia account across your devices. For security, your active device sessions are managed under your account profile.", + }, + { + question: "How do I change or reset my password?", + answer: + "If you are logged in, navigate to Settings > Change Password. If you are signed out, tap 'Forgot Password' on the login screen to verify your email via OTP.", }, { question: "How do I edit my profile information?", answer: "Navigate to the Profile tab or Settings > Edit Profile. You can update your Full Name, Phone Number, and Country.", }, - { - question: "Can I use Acupedia without an internet connection?", - answer: - "Yes. Once clinical modules and point definitions have been loaded, they remain cached on your device for offline reference in clinical settings.", - }, { question: "How do I report clinical inaccuracies or suggestions?", answer: - "We take clinical accuracy seriously. Please reach out to our editorial and clinical review team directly using the Email Support button below.", + "We take clinical accuracy seriously. Please reach out to our editorial and clinical review team directly using the Email Clinical Support button below.", }, ]; @@ -52,11 +70,13 @@ export default function HelpSupportScreen() { const [expandedIndex, setExpandedIndex] = useState(0); const handleContact = () => { - Linking.openURL("mailto:support@acupedia.com").catch(() => { - Alert.alert( - "Contact Support", - "Please email our support desk at support@acupedia.com" - ); + Linking.openURL(`mailto:${SUPPORT_EMAIL}`).catch(() => { + const msg = `Please email our support desk at ${SUPPORT_EMAIL}`; + if (Platform.OS === "web") { + window.alert(msg); + } else { + Alert.alert("Contact Support", msg); + } }); }; @@ -126,7 +146,7 @@ export default function HelpSupportScreen() { Email Clinical Support - Response typically within 24 hours (support@acupedia.com) + Response typically within 24 hours ({SUPPORT_EMAIL}) - + /> */} All Modules + {/* Eye icon preview button removed; preview mode is controlled exclusively via Settings {isPreviewAdmin ? ( setContentPreviewEnabled(!preview)} @@ -171,7 +172,7 @@ export default function ModulesIndexScreen() { color={preview ? "#FFFFFF" : Colors.primaryDark} /> - ) : null} + ) : null} */} router.push("/search")} style={styles.searchButton}