-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #263 from Arnei/to-redux-toolkit-service
Modernize redux: serviceSlice
- Loading branch information
Showing
15 changed files
with
164 additions
and
204 deletions.
There are no files selected for viewing
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
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 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,14 @@ | ||
import MeanRunTimeCell from "../../components/systems/partials/MeanRunTimeCell"; | ||
import MeanQueueTimeCell from "../../components/systems/partials/MeanQueueTimeCell"; | ||
import ServicesActionCell from "../../components/systems/partials/ServicesActionsCell"; | ||
|
||
/** | ||
* This map contains the mapping between the template strings above and the corresponding react component. | ||
* This helps to render different templates of cells more dynamically. Even empty needed, because Table component | ||
* uses template map. | ||
*/ | ||
export const servicesTemplateMap = { | ||
MeanRunTimeCell: MeanRunTimeCell, | ||
MeanQueueTimeCell: MeanQueueTimeCell, | ||
ServicesActionsCell: ServicesActionCell, | ||
}; |
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,6 +1,7 @@ | ||
import { RootState } from "../store"; | ||
|
||
/** | ||
* This file contains selectors regarding services | ||
*/ | ||
|
||
export const getServices = (state: any) => state.services.results; | ||
export const getTotalServices = (state: any) => state.services.total; | ||
export const getServices = (state: RootState) => state.services.results; | ||
export const getTotalServices = (state: RootState) => state.services.total; |
Oops, something went wrong.