ordering-ui-react-native 0.22.28-release → 0.22.29-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.22.28-release",
3
+ "version": "0.22.29-release",
4
4
  "description": "Reusable components made in react native",
5
5
  "main": "src/index.tsx",
6
6
  "author": "ordering.inc",
@@ -153,7 +153,7 @@ export const OrderItem = React.memo((props: any) => {
153
153
  timeState={order?.time_status}
154
154
  />
155
155
  )}
156
- <Logo style={styles.logo}>
156
+ <Logo style={styles.logo} hasExternalAndGroup={showExternalId && order?.order_group_id}>
157
157
  <FastImage
158
158
  style={styles.icon}
159
159
  source={order.business?.logo?.includes('https') ? {
@@ -164,7 +164,7 @@ export const OrderItem = React.memo((props: any) => {
164
164
  resizeMode={FastImage.resizeMode.cover}
165
165
  />
166
166
  </Logo>
167
- <Information>
167
+ <Information hasExternalAndGroup={showExternalId && order?.order_group_id}>
168
168
  {!!order?.order_group_id && (
169
169
  <OText>
170
170
  <OText>{(t('INVOICE_GROUP_NO', 'Group No.') + order?.order_group_id)}</OText>
@@ -185,7 +185,7 @@ export const OrderItem = React.memo((props: any) => {
185
185
  </NotificationIcon>
186
186
  )}
187
187
  <View>
188
- {!order?.order_group_id && showExternalId && !order?.order_group && (
188
+ {showExternalId && (
189
189
  <OText
190
190
  style={styles.date}
191
191
  color={theme.colors.unselectText}
@@ -10,6 +10,7 @@ export const Card = styled.View`
10
10
  export const Logo = styled.View`
11
11
  height: 65px;
12
12
  width: 65px;
13
+ align-self: ${({ hasExternalAndGroup }: any) => hasExternalAndGroup ? 'center' : 'auto'};
13
14
  `;
14
15
 
15
16
  export const Information = styled.View`
@@ -17,7 +18,7 @@ export const Information = styled.View`
17
18
  justify-content: flex-start;
18
19
  margin-horizontal: 5px;
19
20
  flex: 1;
20
- max-height: 60px;
21
+ max-height: ${({ hasExternalAndGroup }: any) => hasExternalAndGroup ? '75px' : '60px'};
21
22
  `;
22
23
 
23
24
  export const MyOrderOptions = styled.View`