Replace the profile tab with prescription management (inline reminders and family invite), add a shared tab top bar, separate notifications from orders, and support any-branch guest checkout with GSH codes. Co-authored-by: Cursor <cursoragent@cursor.com>
54 lines
2.3 KiB
TypeScript
54 lines
2.3 KiB
TypeScript
import type { Ionicons } from "@expo/vector-icons";
|
|
|
|
export const routes = {
|
|
welcome: "/(root)/auth/welcome",
|
|
otp: "/(root)/auth/otp",
|
|
language: "/(root)/auth/language",
|
|
home: "/(root)/(tabs)",
|
|
favorites: "/(root)/(tabs)/favorites",
|
|
cart: "/(root)/(tabs)/cart",
|
|
profile: "/(root)/(screens)/profile",
|
|
shop: "/(root)/(screens)/shop",
|
|
search: "/(root)/(screens)/search",
|
|
product: (id: string) => `/(root)/(screens)/product/${id}` as const,
|
|
branches: "/(root)/(screens)/branches",
|
|
checkout: "/(root)/(screens)/checkout",
|
|
rxScan: "/(root)/(screens)/prescription/scan",
|
|
rxReview: "/(root)/(screens)/prescription/review",
|
|
rxList: "/(root)/(tabs)/prescriptions",
|
|
rxDetail: (id: string) => `/(root)/(screens)/prescription/${id}` as const,
|
|
rxCalendar: (id: string) =>
|
|
`/(root)/(screens)/prescription/calendar/${id}` as const,
|
|
family: "/(root)/(screens)/family",
|
|
familyInvite: "/(root)/(screens)/family/invite",
|
|
subscriptions: "/(root)/(screens)/subscriptions",
|
|
profileSwitch: "/(root)/(screens)/profiles/switch",
|
|
profileJoin: "/(root)/(screens)/profiles/join",
|
|
emergencyContacts: "/(root)/(screens)/emergency-contacts",
|
|
orders: "/(root)/(screens)/orders",
|
|
orderDetail: (id: string) => `/(root)/(screens)/orders/${id}` as const,
|
|
tracking: (id: string) => `/(root)/(screens)/tracking/${id}` as const,
|
|
notifications: "/(root)/(screens)/notifications",
|
|
loyalty: "/(root)/(screens)/loyalty",
|
|
about: "/(root)/(screens)/about",
|
|
contact: "/(root)/(screens)/contact",
|
|
addresses: "/(root)/(screens)/addresses",
|
|
} as const;
|
|
|
|
export type Category = {
|
|
id: string;
|
|
labelKey: string;
|
|
icon: keyof typeof Ionicons.glyphMap;
|
|
};
|
|
|
|
export const categories: Category[] = [
|
|
{ id: "medicines", labelKey: "categories.medicines", icon: "medkit-outline" },
|
|
{ id: "vitamins", labelKey: "categories.vitamins", icon: "leaf-outline" },
|
|
{ id: "personal-care", labelKey: "categories.personalCare", icon: "sparkles-outline" },
|
|
{ id: "diabetic", labelKey: "categories.diabetic", icon: "pulse-outline" },
|
|
{ id: "devices", labelKey: "categories.devices", icon: "hardware-chip-outline" },
|
|
{ id: "baby", labelKey: "categories.baby", icon: "happy-outline" },
|
|
{ id: "first-aid", labelKey: "categories.firstAid", icon: "bandage-outline" },
|
|
{ id: "wellness", labelKey: "categories.wellness", icon: "heart-outline" },
|
|
];
|