diff options
author | Desmond Kyeremeh <elDekyfin@gmail.com> | 2021-07-12 03:12:10 +0000 |
---|---|---|
committer | Desmond Kyeremeh <elDekyfin@gmail.com> | 2021-07-12 03:12:10 +0000 |
commit | a7e1b5f5fd772d37f9777fec097f28411f13562f (patch) | |
tree | 068bd0e5968eee9f065145f8abd53395dd113d1e /modern/src/common/selectors.js | |
parent | aba0f502a1a5e9a9467a06e1417ebb72c1e2ced2 (diff) | |
download | trackermap-web-a7e1b5f5fd772d37f9777fec097f28411f13562f.tar.gz trackermap-web-a7e1b5f5fd772d37f9777fec097f28411f13562f.tar.bz2 trackermap-web-a7e1b5f5fd772d37f9777fec097f28411f13562f.zip |
moved selectors to common
Diffstat (limited to 'modern/src/common/selectors.js')
-rw-r--r-- | modern/src/common/selectors.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/modern/src/common/selectors.js b/modern/src/common/selectors.js new file mode 100644 index 00000000..44a0c547 --- /dev/null +++ b/modern/src/common/selectors.js @@ -0,0 +1,3 @@ +export const getIsAdmin = (state) => state.session.user?.administrator; + +export const getUserId = (state) => state.session.user?.id; |