mg-library 1.0.573 → 1.0.575

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.
Files changed (2) hide show
  1. package/blocks.js +26 -15
  2. package/package.json +1 -1
package/blocks.js CHANGED
@@ -189,7 +189,7 @@ export function MGLogin(props) {
189
189
 
190
190
  let cardFooter = (
191
191
  <View>
192
- <Button
192
+ {/* <Button
193
193
  accessoryRight={loginIcon}
194
194
  onPress={handleSubmit((data) => {
195
195
  props.setNavigator(undefined);
@@ -202,7 +202,28 @@ export function MGLogin(props) {
202
202
  data);
203
203
  })}>
204
204
  {mgFunctionsLib.i18nString('login', props.language)}
205
- </Button>
205
+ </Button> */}
206
+
207
+ <NBButton
208
+ py={4} colorScheme="primary"
209
+ leftIcon={
210
+ <NBIcon as={MaterialCommunityIcons} name="login" size="lg" color="white" />
211
+ }
212
+ onPress={handleSubmit((data) => {
213
+ props.setNavigator(undefined);
214
+ mgLoginLib.onPressLogin(
215
+ props.dispatch,
216
+ props.actions,
217
+ props.app,
218
+ props.apiUrl,
219
+ props.language,
220
+ data);
221
+ })}>
222
+ <MGText category='p1' color='white'>
223
+ {mgFunctionsLib.i18nString('login', props.language)}
224
+ </MGText>
225
+ </NBButton>
226
+
206
227
  </View>
207
228
  );
208
229
 
@@ -597,7 +618,7 @@ export function MGCamera(props) {
597
618
  leftIcon={
598
619
  <NBIcon as={MaterialCommunityIcons} name="camera-outline" size="lg" color="white" />
599
620
  }
600
- onPress={__takePicture}>
621
+ onPress={__takePicture}>
601
622
  <MGText category="p1" color="white">
602
623
  {mgFunctionsLib.i18nString('doTakePhoto', props.language)}
603
624
  </MGText>
@@ -670,26 +691,16 @@ export function MGCameraPreview(props) {
670
691
  <View>
671
692
  <View style={{ flexDirection: 'row' }}>
672
693
  <View style={{ flex: 1, alignItems: 'center' }}>
673
-
674
- {/* <Button
675
- style={{ width: 150 }}
676
- status='primary'
677
- accessoryLeft={SaveIcon}
678
- onPress={__savePicture}>
679
- <MGText>{mgFunctionsLib.i18nString('doSavePhoto', props.language)}</MGText>
680
- </Button> */}
681
-
682
694
  <NBButton
683
695
  style={{ width: 150 }} py={4} colorScheme="primary"
684
696
  leftIcon={
685
697
  <NBIcon as={MaterialCommunityIcons} name="cloud-upload-outline" size="lg" color="white" />
686
698
  }
687
- onPress={__savePicture}>
699
+ onPress={__savePicture}>
688
700
  <MGText category="p1" color="white">
689
701
  {mgFunctionsLib.i18nString('doSavePhoto', props.language)}
690
702
  </MGText>
691
- </NBButton>
692
-
703
+ </NBButton>
693
704
  </View>
694
705
  </View>
695
706
  </View>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mg-library",
3
- "version": "1.0.573",
3
+ "version": "1.0.575",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {