Skip to content

Commit

Permalink
Merge branch 'main' of github.com:DIPSAS/hello-open-dips
Browse files Browse the repository at this point in the history
  • Loading branch information
jko218 committed Jun 26, 2024
2 parents 228d181 + e533f4f commit e04ff0f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import clientContext from "../context/clientContext";

function MyApp({ Component, pageProps }: AppProps) {
const [client, setClient] = useState<Client>(undefined!);
const [loading, setLoading] = useState<boolean>(false);
const [loading, setLoading] = useState<boolean>(true);

useEffect(() => {
setLoading(true);
Expand All @@ -33,7 +33,7 @@ function MyApp({ Component, pageProps }: AppProps) {
<clientContext.Provider value={{ client: client, setClient: setClient }}>
<Header/>
<div className="wrapper">
<Component {...pageProps}>
<Component {...pageProps} clientLoading={loading}>
</Component>
</div>
</clientContext.Provider>
Expand Down
3 changes: 1 addition & 2 deletions src/pages/patient/[id].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const Patient: React.FC = () => {
const [patient, setPatient] = useState<R4.IPatient | undefined>();
const [documents, setDocuments] = useState<R4.IBundle | undefined>();
const [conditions, setConditions] = useState<R4.IBundle | undefined>();
const [loading, setLoading] = useState<boolean>(false);
const [loading, setLoading] = useState<boolean>(true);
const [appointments, setAppointments] = useState<R4.IBundle | undefined>();
const [encounters, setEncounters] = useState<R4.IBundle | undefined>();

Expand Down Expand Up @@ -198,7 +198,6 @@ if(patient && !loading && documents && appointments && encounters){

return (
<div className="wrapper">

<BlueInfoCard
icon="person-icon"
title={`${patient?.name![0].given} ${patient?.name![0].family}`}
Expand Down

0 comments on commit e04ff0f

Please sign in to comment.