diff --git a/apps/expo/src/app/index.tsx b/apps/expo/src/app/index.tsx index 9677adce..8ef51cb2 100644 --- a/apps/expo/src/app/index.tsx +++ b/apps/expo/src/app/index.tsx @@ -1,114 +1,57 @@ -import { Button, ScrollView, Text, View } from "react-native"; +import { Text, View } from "react-native"; import { SafeAreaView } from "react-native-safe-area-context"; -import { Link, Stack } from "expo-router"; +import { Stack, useRouter } from "expo-router"; import { useAtom } from "jotai"; -import { Loader2 } from "lucide-react-native"; import { patientIdAtom } from "~/components/forms/welcome-form"; -import { initialSteps, stepsAtom } from "~/components/ui/steps"; -import { api } from "~/utils/api"; -import { clearAll } from "~/utils/atom-with-mmkv"; +import SvgComponent from "~/components/ui/home-svg"; +import { Button } from "~/components/ui/rn-ui/components/ui/button"; const Index = () => { - const [patientId, setPatientId] = useAtom(patientIdAtom); - const [steps, setSteps] = useAtom(stepsAtom); - - const { data, isLoading, isError, error } = - api.patient.searchPatients.useQuery({ query: {} }); - - if (isLoading) { - return ( - - - - ); - } - - if (isError) { - return Error: {error.message}; - } - - const patients = data?.entry?.map((entry) => entry.resource) ?? []; + const [, setPatientId] = useAtom(patientIdAtom); + const router = useRouter(); return ( - + {/* Changes page title visible on the header */} - - - - Create T3 Turbo - - - - All Patients: - {patients.length > 0 ? ( - patients.map((patient) => ( - - ID: {patient?.id} - Given Name: {patient?.name?.[0]?.given} - Family Name: {patient?.name?.[0]?.family} - {/* Include more patient details as needed */} - - )) - ) : ( - No patients found. - )} - - - + + + + + - - - - Confirmation - - - - - Portal - - + + + + + ); diff --git a/apps/expo/src/components/ui/home-svg.tsx b/apps/expo/src/components/ui/home-svg.tsx new file mode 100644 index 00000000..10c96c07 --- /dev/null +++ b/apps/expo/src/components/ui/home-svg.tsx @@ -0,0 +1,53 @@ +import * as React from "react"; +import type { SvgProps } from "react-native-svg"; +import Svg, { Path } from "react-native-svg"; + +const SvgComponent = (props: SvgProps) => ( + + + + + + + + + + + + + +); +export default SvgComponent;