This repository has been archived by the owner on Jan 9, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d1f78c4
commit a9c4100
Showing
6 changed files
with
44 additions
and
22 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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import React from 'react' | ||
import PrivateRoute from 'components/PrivateRoute' | ||
import { Switch } from 'react-router' | ||
import LabRequests from './requests/LabRequests' | ||
|
||
const Labs = () => ( | ||
<Switch> | ||
<PrivateRoute isAuthenticated exact path="/labs" component={LabRequests} /> | ||
</Switch> | ||
) | ||
|
||
export default Labs |
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,12 @@ | ||
import React from 'react' | ||
import useTitle from 'page-header/useTitle' | ||
import { useTranslation } from 'react-i18next' | ||
|
||
const LabRequests = () => { | ||
const { t } = useTranslation() | ||
useTitle(t('labs.requests.label')) | ||
|
||
return <h1>Lab Requests</h1> | ||
} | ||
|
||
export default LabRequests |
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,8 @@ | ||
export default { | ||
labs: { | ||
label: 'Labs', | ||
requests: { | ||
label: 'Lab Requests', | ||
}, | ||
}, | ||
} |