diff options
author | Desmond Kyeremeh <elDekyfin@gmail.com> | 2021-07-01 13:55:52 +0000 |
---|---|---|
committer | Desmond Kyeremeh <elDekyfin@gmail.com> | 2021-07-01 13:55:52 +0000 |
commit | 8b1c7bb055ceeb4d3e95d7ab3b8fbe7aa1f8dfa7 (patch) | |
tree | c7285e4dc4fb6aced8cf9de1c1269342226ef061 /modern/src/selectors.js | |
parent | 69d7c4feead09434914fdad109eb02e12c15cb89 (diff) | |
download | trackermap-web-8b1c7bb055ceeb4d3e95d7ab3b8fbe7aa1f8dfa7.tar.gz trackermap-web-8b1c7bb055ceeb4d3e95d7ab3b8fbe7aa1f8dfa7.tar.bz2 trackermap-web-8b1c7bb055ceeb4d3e95d7ab3b8fbe7aa1f8dfa7.zip |
Moved some selectors into separate file
Diffstat (limited to 'modern/src/selectors.js')
-rw-r--r-- | modern/src/selectors.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/modern/src/selectors.js b/modern/src/selectors.js new file mode 100644 index 00000000..f0b08f5f --- /dev/null +++ b/modern/src/selectors.js @@ -0,0 +1,3 @@ +export const getIsAdmin = state => state.session.user?.administrator; + +export const getUserId = state => state.session.user?.id; |