Skip to content

Commit 1b53915

Browse files
committed
don't output the Header if there's no heading text
1 parent 2044742 commit 1b53915

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/views/components/notice.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export function NoticeView({
4444
<View style={[styles.container, style]}>
4545
{spinner ? <ActivityIndicator style={styles.spinner} /> : null}
4646

47-
<Heading level={1}>{header}</Heading>
47+
{header ? <Heading level={1}>{header}</Heading> : null}
4848

4949
<Text selectable={true} style={styles.text}>
5050
{text || 'Notice!'}

0 commit comments

Comments
 (0)