ordering-ui-react-native 0.21.30 → 0.21.31-test

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.21.30",
3
+ "version": "0.21.31-test",
4
4
  "description": "Reusable components made in react native",
5
5
  "main": "src/index.tsx",
6
6
  "author": "ordering.inc",
@@ -126,46 +126,46 @@ const NewOrderNotificationUI = (props: any) => {
126
126
  }, [])
127
127
 
128
128
  useEffect(() => {
129
- return () => {
130
- handleCloseEvents()
131
- }
129
+ return () => handleCloseEvents()
132
130
  }, [])
133
131
 
134
132
  return (
135
- <Modal
136
- animationType='slide'
137
- transparent={true}
138
- visible={!!currentEvent?.orderId}
139
- >
140
- <NotificationContainer>
141
- <View style={styles.modalView}>
142
- <TouchableOpacity
143
- style={styles.wrapperIcon}
144
- onPress={() => handleCloseEvents()}
145
- >
146
- <Icon name="x" size={30} />
147
- </TouchableOpacity>
148
- <OText
149
- size={18}
150
- color={theme.colors.textGray}
151
- weight={600}
152
- >
153
- {evtList[currentEvent?.evt]?.message}
154
- </OText>
155
- <OIcon
156
- src={theme.images.general.newOrder}
157
- width={250}
158
- height={200}
159
- />
160
- <OText
161
- color={theme.colors.textGray}
162
- mBottom={15}
163
- >
164
- {evtList[currentEvent?.evt]?.message2}
165
- </OText>
166
- </View>
167
- </NotificationContainer>
168
- </Modal>
133
+ <>
134
+ <Modal
135
+ animationType='slide'
136
+ transparent={true}
137
+ visible={!!currentEvent?.orderId}
138
+ >
139
+ <NotificationContainer>
140
+ <View style={styles.modalView}>
141
+ <TouchableOpacity
142
+ style={styles.wrapperIcon}
143
+ onPress={() => handleCloseEvents()}
144
+ >
145
+ <Icon name="x" size={30} />
146
+ </TouchableOpacity>
147
+ <OText
148
+ size={18}
149
+ color={theme.colors.textGray}
150
+ weight={600}
151
+ >
152
+ {evtList[currentEvent?.evt]?.message}
153
+ </OText>
154
+ <OIcon
155
+ src={theme.images.general.newOrder}
156
+ width={250}
157
+ height={200}
158
+ />
159
+ <OText
160
+ color={theme.colors.textGray}
161
+ mBottom={15}
162
+ >
163
+ {evtList[currentEvent?.evt]?.message2}
164
+ </OText>
165
+ </View>
166
+ </NotificationContainer>
167
+ </Modal>
168
+ </>
169
169
  )
170
170
  }
171
171