mg-library 1.0.688 → 1.0.690

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/components.js CHANGED
@@ -65,7 +65,7 @@ export function MGCard({ children, header = null, footer = null, style = {}, ...
65
65
  <Box
66
66
  borderWidth={1}
67
67
  rounded="$md"
68
- borderColor="$gray300"
68
+ borderColor="$$primary700"
69
69
  bg="$white"
70
70
  shadow="$5"
71
71
  overflow="hidden"
package/login.js CHANGED
@@ -70,7 +70,7 @@ export function onAutoLogin(dispatch, actions, app, apiUrl, language, setAppStat
70
70
  setAppState({ isLoading: true });
71
71
  mgFunctionsLib.readFromLocalStorage(mgConstantsLib.ACCESS_TOKEN)
72
72
  .then(value => {
73
- accessToken = value;
73
+ let accessToken = value;
74
74
  try {
75
75
  let requestData = {
76
76
  app: app,
@@ -80,7 +80,7 @@ export function onAutoLogin(dispatch, actions, app, apiUrl, language, setAppStat
80
80
  dispatch(actions.apiRequest());
81
81
  axios.post(apiUrl + '/Login', requestData, mgFunctionsLib.getRequestHeader())
82
82
  .then(response => {
83
- appSession = response.data;
83
+ let appSession = response.data;
84
84
  if (!mgFunctionsLib.isEmpty(appSession))
85
85
  dispatch(actions.login(appSession));
86
86
  setNavigator(undefined);
@@ -97,3 +97,7 @@ export function onAutoLogin(dispatch, actions, app, apiUrl, language, setAppStat
97
97
  }
98
98
  });
99
99
  }
100
+
101
+ const MGLoginLib = { onPressLogin, onPressLogout, onAutoLogin };
102
+
103
+ export default MGLoginLib;
package/mg-library.rar CHANGED
Binary file
package/package.json CHANGED
@@ -1,10 +1,12 @@
1
1
  {
2
2
  "name": "mg-library",
3
- "version": "1.0.688",
3
+ "version": "1.0.690",
4
4
  "description": "",
5
5
  "main": "index.js",
6
- "scripts": {
7
- "test": "echo \"Error: no test specified\" && exit 1"
6
+ "react-native": "index.js",
7
+ "exports": {
8
+ ".": "./index.js",
9
+ "./login": "./login.js"
8
10
  },
9
11
  "author": "",
10
12
  "license": "ISC"