Skip to content
Merged
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
42 changes: 20 additions & 22 deletions src/components/NumberWithSymbolForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -459,30 +459,28 @@ function NumberWithSymbolForm({
<View
id={NUMBER_VIEW_ID}
onMouseDown={(event) => focusTextInput(event, [NUMBER_VIEW_ID])}
style={[styles.moneyRequestAmountContainer, styles.flexRow, styles.w100, styles.alignItemsCenter, styles.justifyContentCenter]}
style={[styles.flex1, styles.w100, styles.alignItemsCenter, styles.justifyContentCenter]}
>
{textInputComponent}
<View style={[styles.flexRow, styles.moneyRequestAmountContainer, styles.alignItemsCenter, styles.justifyContentCenter]}>{textInputComponent}</View>
{isSymbolPressable && !!currency && !canUseTouchScreen && (
<Button
shouldShowRightIcon
small
iconRight={Expensicons.DownArrow}
onPress={onSymbolButtonPress}
style={styles.minWidth18}
isContentCentered
text={currency}
/>
)}
{!!errorText && (
<FormHelpMessage
style={[styles.pAbsolute, styles.b0, shouldShowBigNumberPad ? styles.mb0 : styles.mb3, styles.ph5, styles.w100]}
isError
message={errorText}
/>
)}
</View>

{isSymbolPressable && !!currency && !canUseTouchScreen && (
<Button
shouldShowRightIcon
small
iconRight={Expensicons.DownArrow}
onPress={onSymbolButtonPress}
style={styles.minWidth18}
isContentCentered
text={currency}
/>
)}

{!!errorText && (
<FormHelpMessage
style={[styles.pAbsolute, styles.b0, shouldShowBigNumberPad ? styles.mb0 : styles.mb3, styles.ph5, styles.w100]}
isError
message={errorText}
/>
)}
</View>
) : (
textInputComponent
Expand Down
Loading