ordering-ui-react-native 0.17.32 → 0.17.33
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
|
@@ -9,7 +9,7 @@ const TitleWrapper = styled.View`
|
|
|
9
9
|
padding-horizontal: 10px;
|
|
10
10
|
`
|
|
11
11
|
const TitleTopWrapper = styled.View`
|
|
12
|
-
flex
|
|
12
|
+
flex: 1;
|
|
13
13
|
flex-direction: row;
|
|
14
14
|
align-items: center;
|
|
15
15
|
`
|
|
@@ -40,7 +40,8 @@ interface Props {
|
|
|
40
40
|
style?: ViewStyle,
|
|
41
41
|
titleWrapStyle?: ViewStyle,
|
|
42
42
|
paddingTop?: number,
|
|
43
|
-
isVertical?: boolean
|
|
43
|
+
isVertical?: boolean,
|
|
44
|
+
noMargin?: any
|
|
44
45
|
}
|
|
45
46
|
|
|
46
47
|
const NavBar = (props: Props) => {
|
|
@@ -96,10 +97,9 @@ const NavBar = (props: Props) => {
|
|
|
96
97
|
style={
|
|
97
98
|
{
|
|
98
99
|
textAlign: props.titleAlign ? props.titleAlign : 'center',
|
|
99
|
-
marginRight: props.showCall ? 0 : 40,
|
|
100
|
+
marginRight: (props.showCall || !!props.noMargin) ? 0 : 40,
|
|
100
101
|
color: props.titleColor || theme.colors.textNormal,
|
|
101
102
|
paddingHorizontal: props.titleAlign == 'left' ? 12 : 0,
|
|
102
|
-
width: '100%',
|
|
103
103
|
...props.titleStyle,
|
|
104
104
|
}
|
|
105
105
|
}
|
|
@@ -173,7 +173,8 @@ const SingleOrderCardUI = (props: SingleOrderCardParams) => {
|
|
|
173
173
|
{(!!order.business?.logo || theme?.images?.dummies?.businessLogo) && (
|
|
174
174
|
<Logo style={styles.logoWrapper}>
|
|
175
175
|
<OIcon
|
|
176
|
-
url={optimizeImage(order.business?.logo
|
|
176
|
+
url={optimizeImage(order.business?.logo, 'h_300,c_limit')}
|
|
177
|
+
src={optimizeImage(!order.business?.logo && theme?.images?.dummies?.businessLogo, 'h_300,c_limit')}
|
|
177
178
|
style={styles.logo}
|
|
178
179
|
/>
|
|
179
180
|
</Logo>
|