We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 30f2b49 commit cd53141Copy full SHA for cd53141
src/incubator/Dialog/DialogHeader.tsx
@@ -38,12 +38,12 @@ const DialogHeader = (props: DialogHeaderProps = {}) => {
38
if (!isEmpty(title) || !isEmpty(subtitle)) {
39
return (
40
<Container onPress={onPress} center flex>
41
- {title && (
+ {!isEmpty(title) && (
42
<Text $textDefault {...titleProps} marginB-s3 style={titleStyle}>
43
{title}
44
</Text>
45
)}
46
- {subtitle && (
+ {!isEmpty(subtitle) && (
47
<Text $textDefault {...subtitleProps} marginB-s3 style={subtitleStyle}>
48
{subtitle}
49
0 commit comments