Skip to content

Commit

Permalink
money request and reportpreview h1 amount
Browse files Browse the repository at this point in the history
  • Loading branch information
grgia committed Feb 29, 2024
1 parent 9b5d041 commit a509234
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ function MoneyRequestPreviewContent({
<View style={[styles.flex1, styles.flexRow, styles.alignItemsCenter]}>
<Text
style={[
styles.textHeadline,
styles.textHeadlineH1,
isBillSplit &&
StyleUtils.getAmountFontSizeAndLineHeight(isSmallScreenWidth, windowWidth, displayAmount.length, sortedParticipantAvatars.length),
isDeleted && styles.lineThrough,
Expand Down
2 changes: 1 addition & 1 deletion src/components/ReportActionItem/ReportPreview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ function ReportPreview({
<View style={styles.reportPreviewAmountSubtitleContainer}>
<View style={styles.flexRow}>
<View style={[styles.flex1, styles.flexRow, styles.alignItemsCenter]}>
<Text style={styles.textHeadlineH2}>{getDisplayAmount()}</Text>
<Text style={styles.textHeadlineH1}>{getDisplayAmount()}</Text>
{ReportUtils.isSettled(iouReportID) && (
<View style={styles.defaultCheckmarkWrapper}>
<Icon
Expand Down
8 changes: 8 additions & 0 deletions src/styles/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -448,6 +448,14 @@ const styles = (theme: ThemeColors) =>
lineHeight: variables.lineHeightSizeh2,
},

textHeadlineH1: {
...headlineFont,
...whiteSpace.preWrap,
color: theme.heading,
fontSize: variables.fontSizeXLarge,
lineHeight: variables.lineHeightSizeh1,
},

textWhite: {
color: theme.textLight,
},
Expand Down
4 changes: 2 additions & 2 deletions src/styles/variables.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,8 @@ export default {
lineHeightXLarge: getValueUsingPixelRatio(20, 24),
lineHeightXXLarge: getValueUsingPixelRatio(27, 32),
lineHeightXXXLarge: getValueUsingPixelRatio(32, 37),
lineHeightSizeh1: getValueUsingPixelRatio(23, 28),
lineHeightSizeh2: getValueUsingPixelRatio(23, 28),
lineHeightSizeh1: getValueUsingPixelRatio(28, 32),
lineHeightSizeh2: getValueUsingPixelRatio(24, 28),
lineHeightSignInHeroXSmall: getValueUsingPixelRatio(32, 37),
inputHeight: getValueUsingPixelRatio(52, 72),
inputHeightSmall: 28,
Expand Down

0 comments on commit a509234

Please sign in to comment.