-
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 #262 from Arnei/to-redux-toolkit-server
Modernize redux: serverSlice
- Loading branch information
Showing
14 changed files
with
163 additions
and
208 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,12 @@ | ||
import ServersStatusCell from "../../components/systems/partials/ServersStatusCell"; | ||
import ServersMaintenanceCell from "../../components/systems/partials/ServersMaintenanceCell"; | ||
|
||
/** | ||
* 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 serversTemplateMap = { | ||
ServersStatusCell: ServersStatusCell, | ||
ServersMaintenanceCell: ServersMaintenanceCell, | ||
}; |
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 servers | ||
*/ | ||
|
||
export const getServers = (state: any) => state.servers.results; | ||
export const getTotalServers = (state: any) => state.servers.total; | ||
export const getServers = (state: RootState) => state.servers.results; | ||
export const getTotalServers = (state: RootState) => state.servers.total; |
Oops, something went wrong.