Skip to content

Commit

Permalink
Update ChainWarning.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeljscript committed Aug 2, 2024
1 parent 52a8003 commit 162ef26
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,11 @@ export const ChainWarning = ({title, description, onClose}: Props) => {
end={{x: isDark ? 0 : 0, y: isDark ? 0.5 : 0}}
style={styles.disclaimer}
>
<TouchableOpacity onPress={onClose} style={styles.closeButton}>
<Icon.Close size={20} color={color.gray_cmax} />
</TouchableOpacity>
{onClose != null && (
<TouchableOpacity onPress={onClose} style={styles.closeButton}>
<Icon.Close size={20} color={color.gray_cmax} />
</TouchableOpacity>
)}

<Text style={styles.title}>{title}</Text>

Expand Down

0 comments on commit 162ef26

Please sign in to comment.