-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into feature-upload
- Loading branch information
Showing
35 changed files
with
7,913 additions
and
6,913 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
import { createContext } from 'react'; | ||
import { createContext, useState, useContext } from 'react'; | ||
|
||
const UserContext = createContext({}); | ||
const UserContext = createContext(); | ||
|
||
// export const UserContextProvider = ({ children }) => { | ||
// const [user, setUser] = useState({ name: '', username: '', id: '' }); | ||
export const UserContextProvider = ({ children }) => { | ||
const [user, setUser] = useState({ name: '', role: '' }); | ||
|
||
// return <UserContext.Provider value={{ user, setUser }}>{children}</UserContext.Provider>; | ||
// }; | ||
return <UserContext.Provider value={{ user, setUser }}>{children}</UserContext.Provider>; | ||
}; | ||
|
||
export const useUserContext = () => useContext(UserContext); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { Helmet } from 'react-helmet-async'; | ||
import { useParams } from 'react-router-dom'; | ||
|
||
import { HealthRecordView } from 'src/sections/healthRecords'; | ||
|
||
// ---------------------------------------------------------------------- | ||
|
||
export default function HealthRecordPage() { | ||
let { patientID } = useParams(); | ||
return ( | ||
<> | ||
<Helmet> | ||
<title> Health Records </title> | ||
</Helmet> | ||
|
||
<HealthRecordView patientID={patientID} /> | ||
</> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { Helmet } from 'react-helmet-async'; | ||
|
||
import { PatientView } from 'src/sections/patients/view'; | ||
|
||
// ---------------------------------------------------------------------- | ||
|
||
export default function PatientPage() { | ||
return ( | ||
<> | ||
<Helmet> | ||
<title> Patients </title> | ||
</Helmet> | ||
|
||
<PatientView /> | ||
</> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.