@janiscommerce/ui-native 1.26.0 → 1.26.1
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.
|
@@ -4,9 +4,6 @@ import React from 'react';
|
|
|
4
4
|
import { StyleSheet, View } from 'react-native';
|
|
5
5
|
import { palette } from '../../../theme/palette';
|
|
6
6
|
const MainCardList = ({ displayId, children, blocks, isSelected, style, ...props }) => {
|
|
7
|
-
if (!displayId || typeof displayId !== 'string') {
|
|
8
|
-
return null;
|
|
9
|
-
}
|
|
10
7
|
const styles = StyleSheet.create({
|
|
11
8
|
innerContainer: {},
|
|
12
9
|
blockContainer: {
|
|
@@ -51,7 +48,7 @@ const MainCardList = ({ displayId, children, blocks, isSelected, style, ...props
|
|
|
51
48
|
].filter(Boolean);
|
|
52
49
|
return (<BaseCardList isSelected={isSelected} style={style && style} {...props}>
|
|
53
50
|
<View>
|
|
54
|
-
<Text style={activeDisplayIdStyles}>{displayId}</Text>
|
|
51
|
+
{displayId && <Text style={activeDisplayIdStyles}>{displayId}</Text>}
|
|
55
52
|
{children && <View style={styles.childrenContainer}>{children}</View>}
|
|
56
53
|
<View>{renderBlocks()}</View>
|
|
57
54
|
</View>
|