Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions src/components/Banner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,11 @@ function Banner({
styles.p5,
styles.borderRadiusNormal,
shouldHighlight ? styles.activeComponentBG : styles.hoveredComponentBG,
styles.breakAll,
styles.breakWord,
containerStyles,
]}
>
<View style={[styles.flexRow, styles.flex1, styles.mw100, styles.alignItemsCenter]}>
<View style={[styles.flexRow, styles.flex1, styles.alignItemsCenter]}>
{shouldShowIcon && !!displayIcon && (
<View style={[styles.mr3]}>
<Icon
Expand All @@ -110,7 +110,7 @@ function Banner({
<RenderHTML html={text} />
) : (
<Text
style={[styles.flex1, styles.flexWrap, textStyles]}
style={[styles.flex1, textStyles]}
onPress={onPress}
suppressHighlighting
>
Expand All @@ -121,7 +121,7 @@ function Banner({
{shouldShowButton && (
<Button
success
style={[styles.pr3]}
style={[styles.pr3, styles.flexShrink0]}
text={translate('common.chatNow')}
onPress={onButtonPress}
/>
Expand All @@ -132,6 +132,7 @@ function Banner({
onPress={onClose}
role={CONST.ROLE.BUTTON}
accessibilityLabel={text ? `${translate('common.close')}, ${text}` : translate('common.close')}
sentryLabel="Banner-Close"
>
<Icon
src={expensifyIcons.Close}
Expand Down
Loading