ordering-ui-react-native 0.15.43 → 0.15.44

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.15.43",
3
+ "version": "0.15.44",
4
4
  "description": "Reusable components made in react native",
5
5
  "main": "src/index.tsx",
6
6
  "author": "ordering.inc",
@@ -43,6 +43,7 @@ export const BusinessControllerUI = (props: BusinessControllerParams) => {
43
43
  } = props;
44
44
  const [{ parsePrice, parseDistance, parseNumber, optimizeImage }] = useUtils();
45
45
  const [orderState] = useOrder();
46
+ const [configState] = useConfig();
46
47
  const [, t] = useLanguage();
47
48
  const theme = useTheme()
48
49
  const styles = StyleSheet.create({
@@ -135,7 +136,7 @@ export const BusinessControllerUI = (props: BusinessControllerParams) => {
135
136
  </View>
136
137
  )}
137
138
  <BusinessState>
138
- {!isBusinessOpen && (
139
+ {!isBusinessOpen && (configState?.configs?.preorder_status_enabled?.value === '1') && (
139
140
  <View style={styles.businessStateView}>
140
141
  <OText
141
142
  color={theme.colors.textThird}