Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

add premiumUser to reducer

ammarahm-edc7b5a10b9f3d
diff --git a/apps/mobile/src/provider/Actions.js b/apps/mobile/src/provider/Actions.js
index 2379bc06f..50d89a409 100644
--- a/apps/mobile/src/provider/Actions.js
+++ b/apps/mobile/src/provider/Actions.js
@@ -34,5 +34,6 @@ export const Actions = {
MENU_PINS:"menuPins",
LAST_SYNC:"lastSynced",
INTENT_MODE: "intentMode",
- SEARCHING:'searching'
+ SEARCHING:'searching',
+ PREMIUM:'premium'
};
diff --git a/apps/mobile/src/provider/Reducer.js b/apps/mobile/src/provider/Reducer.js
index 92bed383a..0601ae84e 100644
--- a/apps/mobile/src/provider/Reducer.js
+++ b/apps/mobile/src/provider/Reducer.js
@@ -282,6 +282,12 @@ export const reducer = (state, action) => {
searching: action.searching,
};
}
+ case Actions.PREMIUM: {
+ return {
+ ...state,
+ premiumUser: action.state,
+ };
+ }
default:
throw new Error('unknown action type');
}