-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tile:adding summary tiles as extesnions (#38)
* tile:adding summary tiles as extesnions * tile:adding summary tiles as extesnions * tile:adding summary tiles as extesnions with a diferrent rendering * tiles:comments in the read-me file
- Loading branch information
Showing
9 changed files
with
185 additions
and
40 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,22 @@ | ||
import React from "react"; | ||
import CompletedList from "../completed-list/completed-list.component"; | ||
import styles from "../queue-list/laboratory-queue.scss"; | ||
import { useTranslation } from "react-i18next"; | ||
import SummaryTile from "../summary-tiles/summary-tile.component"; | ||
import { useLabTestsStats } from "../summary-tiles/laboratory-summary.resource"; | ||
|
||
const ReferredTileComponent = () => { | ||
const { t } = useTranslation(); | ||
|
||
const { count: completedCount } = useLabTestsStats("COMPLETED"); | ||
|
||
return ( | ||
<SummaryTile | ||
label={t("completed", "Completed")} | ||
value={completedCount} | ||
headerLabel={t("results", "Results")} | ||
/> | ||
); | ||
}; | ||
|
||
export default ReferredTileComponent; |
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 React from "react"; | ||
import CompletedList from "../completed-list/completed-list.component"; | ||
import styles from "../queue-list/laboratory-queue.scss"; | ||
import { useTranslation } from "react-i18next"; | ||
import SummaryTile from "../summary-tiles/summary-tile.component"; | ||
|
||
const ReferredTileComponent = () => { | ||
const { t } = useTranslation(); | ||
|
||
return ( | ||
<SummaryTile | ||
label={t("transferred", "Transferred")} | ||
value={0} | ||
headerLabel={t("referredTests", "Ex-Referred tests")} | ||
/> | ||
); | ||
}; | ||
|
||
export default ReferredTileComponent; |
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,22 @@ | ||
import React from "react"; | ||
import CompletedList from "../completed-list/completed-list.component"; | ||
import styles from "../queue-list/laboratory-queue.scss"; | ||
import { useTranslation } from "react-i18next"; | ||
import SummaryTile from "../summary-tiles/summary-tile.component"; | ||
import { useLabTestsStats } from "../summary-tiles/laboratory-summary.resource"; | ||
|
||
const ReferredTileComponent = () => { | ||
const { t } = useTranslation(); | ||
|
||
const { count: testOrderedCount } = useLabTestsStats(""); | ||
|
||
return ( | ||
<SummaryTile | ||
label={t("orders", "Orders")} | ||
value={testOrderedCount} | ||
headerLabel={t("testsOrdered", "Tests ordered")} | ||
/> | ||
); | ||
}; | ||
|
||
export default ReferredTileComponent; |
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,22 @@ | ||
import React from "react"; | ||
import CompletedList from "../completed-list/completed-list.component"; | ||
import styles from "../queue-list/laboratory-queue.scss"; | ||
import { useTranslation } from "react-i18next"; | ||
import SummaryTile from "../summary-tiles/summary-tile.component"; | ||
import { useLabTestsStats } from "../summary-tiles/laboratory-summary.resource"; | ||
|
||
const WorklistTileComponent = () => { | ||
const { t } = useTranslation(); | ||
|
||
const { count: worklistCount } = useLabTestsStats("IN_PROGRESS"); | ||
|
||
return ( | ||
<SummaryTile | ||
label={t("inProgress", "In progress")} | ||
value={worklistCount} | ||
headerLabel={t("worklist", "Ex-Worklist")} | ||
/> | ||
); | ||
}; | ||
|
||
export default WorklistTileComponent; |
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