Compare commits
1 Commits
main
...
settings-p
| Author | SHA1 | Date |
|---|---|---|
|
|
b8473ad5a5 |
12
.env
12
.env
|
|
@ -17,11 +17,11 @@
|
||||||
# old working .env file
|
# old working .env file
|
||||||
|
|
||||||
# Production Dev
|
# Production Dev
|
||||||
EXPO_PUBLIC_API_URL=https://api.acupedia.in/api
|
# EXPO_PUBLIC_API_URL=https://api.acupedia.in/api
|
||||||
EXPO_PUBLIC_STOREFRONT_URL=https://acupedia.in/store
|
# EXPO_PUBLIC_STOREFRONT_URL=https://acupedia.in/store
|
||||||
EXPO_PUBLIC_CONTENT_PREVIEW_ENABLED=true
|
# EXPO_PUBLIC_CONTENT_PREVIEW_ENABLED=true
|
||||||
|
|
||||||
# Local Dev
|
# Local Dev
|
||||||
# EXPO_PUBLIC_API_URL=http://localhost:8000/api
|
EXPO_PUBLIC_API_URL=http://localhost:8000/api
|
||||||
# EXPO_PUBLIC_STOREFRONT_URL=http://localhost:3000
|
EXPO_PUBLIC_STOREFRONT_URL=http://localhost:3000
|
||||||
# EXPO_PUBLIC_CONTENT_PREVIEW_ENABLED=true
|
EXPO_PUBLIC_CONTENT_PREVIEW_ENABLED=true
|
||||||
|
|
@ -7,6 +7,7 @@ import {
|
||||||
TouchableOpacity,
|
TouchableOpacity,
|
||||||
Alert,
|
Alert,
|
||||||
Linking,
|
Linking,
|
||||||
|
Platform,
|
||||||
} from "react-native";
|
} from "react-native";
|
||||||
import { SafeAreaView } from "react-native-safe-area-context";
|
import { SafeAreaView } from "react-native-safe-area-context";
|
||||||
import { Ionicons } from "@expo/vector-icons";
|
import { Ionicons } from "@expo/vector-icons";
|
||||||
|
|
@ -20,6 +21,8 @@ interface FAQ {
|
||||||
answer: string;
|
answer: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const SUPPORT_EMAIL = "support@acupedia.in";
|
||||||
|
|
||||||
const FAQS: FAQ[] = [
|
const FAQS: FAQ[] = [
|
||||||
{
|
{
|
||||||
question: "What is Acupedia?",
|
question: "What is Acupedia?",
|
||||||
|
|
@ -29,22 +32,37 @@ const FAQS: FAQ[] = [
|
||||||
{
|
{
|
||||||
question: "How do I unlock additional clinical modules?",
|
question: "How do I unlock additional clinical modules?",
|
||||||
answer:
|
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?",
|
question: "How do I edit my profile information?",
|
||||||
answer:
|
answer:
|
||||||
"Navigate to the Profile tab or Settings > Edit Profile. You can update your Full Name, Phone Number, and Country.",
|
"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?",
|
question: "How do I report clinical inaccuracies or suggestions?",
|
||||||
answer:
|
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<number | null>(0);
|
const [expandedIndex, setExpandedIndex] = useState<number | null>(0);
|
||||||
|
|
||||||
const handleContact = () => {
|
const handleContact = () => {
|
||||||
Linking.openURL("mailto:support@acupedia.com").catch(() => {
|
Linking.openURL(`mailto:${SUPPORT_EMAIL}`).catch(() => {
|
||||||
Alert.alert(
|
const msg = `Please email our support desk at ${SUPPORT_EMAIL}`;
|
||||||
"Contact Support",
|
if (Platform.OS === "web") {
|
||||||
"Please email our support desk at support@acupedia.com"
|
window.alert(msg);
|
||||||
);
|
} else {
|
||||||
|
Alert.alert("Contact Support", msg);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -126,7 +146,7 @@ export default function HelpSupportScreen() {
|
||||||
<View style={styles.contactTextContainer}>
|
<View style={styles.contactTextContainer}>
|
||||||
<Text style={styles.contactLabel}>Email Clinical Support</Text>
|
<Text style={styles.contactLabel}>Email Clinical Support</Text>
|
||||||
<Text style={styles.contactSubLabel}>
|
<Text style={styles.contactSubLabel}>
|
||||||
Response typically within 24 hours (support@acupedia.com)
|
Response typically within 24 hours ({SUPPORT_EMAIL})
|
||||||
</Text>
|
</Text>
|
||||||
</View>
|
</View>
|
||||||
<Ionicons
|
<Ionicons
|
||||||
|
|
|
||||||
|
|
@ -72,7 +72,7 @@ export default function PrivacySettingsScreen() {
|
||||||
</Text>
|
</Text>
|
||||||
|
|
||||||
<View style={styles.card}>
|
<View style={styles.card}>
|
||||||
<ProfileMenuItem
|
{/* <ProfileMenuItem
|
||||||
icon="analytics-outline"
|
icon="analytics-outline"
|
||||||
title="Share Anonymous Diagnostics"
|
title="Share Anonymous Diagnostics"
|
||||||
subtitle="Helps Acupedia improve performance & stability"
|
subtitle="Helps Acupedia improve performance & stability"
|
||||||
|
|
@ -88,7 +88,7 @@ export default function PrivacySettingsScreen() {
|
||||||
isSwitch
|
isSwitch
|
||||||
switchValue={offlineCacheEnabled}
|
switchValue={offlineCacheEnabled}
|
||||||
onSwitchChange={setOfflineCacheEnabled}
|
onSwitchChange={setOfflineCacheEnabled}
|
||||||
/>
|
/> */}
|
||||||
|
|
||||||
<ProfileMenuItem
|
<ProfileMenuItem
|
||||||
icon="trash-outline"
|
icon="trash-outline"
|
||||||
|
|
|
||||||
|
|
@ -16,13 +16,13 @@ export const ACCOUNT_SETTINGS: SettingsItem[] = [
|
||||||
icon: "lock-closed-outline" as keyof typeof Ionicons.glyphMap,
|
icon: "lock-closed-outline" as keyof typeof Ionicons.glyphMap,
|
||||||
route: "/profile/change-password",
|
route: "/profile/change-password",
|
||||||
},
|
},
|
||||||
{
|
// {
|
||||||
id: "notification-settings",
|
// id: "notification-settings",
|
||||||
title: "Notification Settings",
|
// title: "Notification Settings",
|
||||||
subtitle: "Clinical updates & reminder alerts",
|
// subtitle: "Clinical updates & reminder alerts",
|
||||||
icon: "notifications-outline" as keyof typeof Ionicons.glyphMap,
|
// icon: "notifications-outline" as keyof typeof Ionicons.glyphMap,
|
||||||
route: "/settings/notifications",
|
// route: "/settings/notifications",
|
||||||
},
|
// },
|
||||||
{
|
{
|
||||||
id: "privacy-settings",
|
id: "privacy-settings",
|
||||||
title: "Privacy & Data",
|
title: "Privacy & Data",
|
||||||
|
|
|
||||||
|
|
@ -153,6 +153,7 @@ export default function ModulesIndexScreen() {
|
||||||
</TouchableOpacity>
|
</TouchableOpacity>
|
||||||
<Text style={styles.headerTitle}>All Modules</Text>
|
<Text style={styles.headerTitle}>All Modules</Text>
|
||||||
<View style={styles.headerActions}>
|
<View style={styles.headerActions}>
|
||||||
|
{/* Eye icon preview button removed; preview mode is controlled exclusively via Settings
|
||||||
{isPreviewAdmin ? (
|
{isPreviewAdmin ? (
|
||||||
<TouchableOpacity
|
<TouchableOpacity
|
||||||
onPress={() => setContentPreviewEnabled(!preview)}
|
onPress={() => setContentPreviewEnabled(!preview)}
|
||||||
|
|
@ -171,7 +172,7 @@ export default function ModulesIndexScreen() {
|
||||||
color={preview ? "#FFFFFF" : Colors.primaryDark}
|
color={preview ? "#FFFFFF" : Colors.primaryDark}
|
||||||
/>
|
/>
|
||||||
</TouchableOpacity>
|
</TouchableOpacity>
|
||||||
) : null}
|
) : null} */}
|
||||||
<TouchableOpacity
|
<TouchableOpacity
|
||||||
onPress={() => router.push("/search")}
|
onPress={() => router.push("/search")}
|
||||||
style={styles.searchButton}
|
style={styles.searchButton}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue