From a7e1b5f5fd772d37f9777fec097f28411f13562f Mon Sep 17 00:00:00 2001 From: Desmond Kyeremeh Date: Mon, 12 Jul 2021 03:12:10 +0000 Subject: moved selectors to common --- modern/src/common/selectors.js | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 modern/src/common/selectors.js (limited to 'modern/src/common') 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; -- cgit v1.2.3