forked from ohcnetwork/care_fe
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Resources redesign (ohcnetwork#10308)
Co-authored-by: rithviknishad <[email protected]>
- Loading branch information
1 parent
1c41bf8
commit 5a7bdb8
Showing
42 changed files
with
388 additions
and
3,768 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
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,17 +1,23 @@ | ||
import View from "@/components/Common/View"; | ||
import PrintResourceLetter from "@/components/Resource/PrintResourceLetter"; | ||
import BoardView from "@/components/Resource/ResourceBoard"; | ||
import ResourceDetails from "@/components/Resource/ResourceDetails"; | ||
import { ResourceDetailsUpdate } from "@/components/Resource/ResourceDetailsUpdate"; | ||
import ListView from "@/components/Resource/ResourceList"; | ||
import ResourceList from "@/components/Resource/ResourceList"; | ||
|
||
import { AppRoutes } from "@/Routers/AppRouter"; | ||
|
||
const ResourceRoutes: AppRoutes = { | ||
"/resource": () => <View name="resource" board={BoardView} list={ListView} />, | ||
"/resource/:id": ({ id }) => <ResourceDetails id={id} />, | ||
"/resource/:id/update": ({ id }) => <ResourceDetailsUpdate id={id} />, | ||
"/resource/:id/print": ({ id }) => <PrintResourceLetter id={id} />, | ||
"/facility/:facilityId/resource": ({ facilityId }) => ( | ||
<ResourceList facilityId={facilityId} /> | ||
), | ||
"/facility/:facilityId/resource/:id": ({ facilityId, id }) => ( | ||
<ResourceDetails facilityId={facilityId} id={id} /> | ||
), | ||
"/facility/:facilityId/resource/:id/update": ({ facilityId, id }) => ( | ||
<ResourceDetailsUpdate facilityId={facilityId} id={id} /> | ||
), | ||
"/facility/:facilityId/resource/:id/print": ({ id }) => ( | ||
<PrintResourceLetter id={id} /> | ||
), | ||
}; | ||
|
||
export default ResourceRoutes; |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.