Skip to content

Commit

Permalink
fix: do not use p element in NoData component (#2401)
Browse files Browse the repository at this point in the history
The children are not necessarily a simple string and it's not allowed
to have for example div as the child of p.
  • Loading branch information
targos committed Jun 8, 2023
1 parent 1990206 commit f86d42c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/component/loader/NoData.tsx
Expand Up @@ -53,11 +53,11 @@ function NoData({
style={{ ...styles.container, ...style }}
{...(canOpenLoader && { onClick: openLoader })}
>
<p style={styles.text}>
<div style={styles.text}>
{isToolEnabled('import')
? emptyText
: 'Importation feature has been disabled'}
</p>
</div>
</div>
);
}
Expand Down

0 comments on commit f86d42c

Please sign in to comment.