ordering-ui-react-native 0.16.73-release → 0.16.74-release

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ordering-ui-react-native",
3
- "version": "0.16.73-release",
3
+ "version": "0.16.74-release",
4
4
  "description": "Reusable components made in react native",
5
5
  "main": "src/index.tsx",
6
6
  "author": "ordering.inc",
@@ -38,6 +38,7 @@ const MomentOptionUI = (props: MomentOptionParams) => {
38
38
  hoursList,
39
39
  dateSelected,
40
40
  timeSelected,
41
+ isCart,
41
42
  handleAsap,
42
43
  handleChangeDate,
43
44
  handleChangeTime,
@@ -367,9 +368,11 @@ const MomentOptionUI = (props: MomentOptionParams) => {
367
368
  </View>
368
369
  <Spinner visible={momentState.isLoading === 1} />
369
370
  </Container>
370
- <View style={{ position: 'absolute', bottom: bottom, paddingBottom: 20, paddingHorizontal: 40, backgroundColor: 'white', width: '100%' }}>
371
- <OButton onClick={handleChangeMoment} isDisabled={!selectedTime} text={t('CONTINUE', 'Continue')} style={{ borderRadius: 7.6, height: 44, shadowOpacity: 0 }} textStyle={{ color: 'white', fontSize: 14 }} showNextIcon />
372
- </View>
371
+ {!isCart && (
372
+ <View style={{ position: 'absolute', bottom: bottom, paddingBottom: 20, paddingHorizontal: 40, backgroundColor: 'white', width: '100%' }}>
373
+ <OButton onClick={() => handleChangeMoment()} isDisabled={!selectedTime} text={t('CONTINUE', 'Continue')} style={{ borderRadius: 7.6, height: 44, shadowOpacity: 0 }} textStyle={{ color: 'white', fontSize: 14 }} showNextIcon />
374
+ </View>
375
+ )}
373
376
  </>
374
377
  );
375
378
  };
@@ -536,6 +536,7 @@ export interface FloatingButtonParams {
536
536
  }
537
537
  export interface MomentOptionParams {
538
538
  navigation: any;
539
+ isCart?: any;
539
540
  nopadding?: boolean;
540
541
  datesList: Array<any>;
541
542
  hoursList: Array<any>;