Skip to content

Commit

Permalink
updated ui for narrow layout
Browse files Browse the repository at this point in the history
  • Loading branch information
FitseTLT committed Oct 28, 2024
1 parent b871e02 commit 02977e9
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/pages/home/HeaderView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,8 @@ function HeaderView({report, parentReportAction, reportID, onNavigationMenuButto
/>
);

const freeTrialButton = <FreeTrial pressable />;

const renderAdditionalText = () => {
if (shouldShowSubtitle() || isPersonalExpenseChat || !policyName || !isEmptyObject(parentNavigationSubtitleData) || isSelfDM) {
return null;
Expand Down Expand Up @@ -280,7 +282,7 @@ function HeaderView({report, parentReportAction, reportID, onNavigationMenuButto
)}
</PressableWithoutFeedback>
<View style={[styles.reportOptions, styles.flexRow, styles.alignItemsCenter]}>
{ReportUtils.isChatUsedForOnboarding(report) && <FreeTrial pressable />}
{!shouldUseNarrowLayout && freeTrialButton}
{isTaskReport && !shouldUseNarrowLayout && ReportUtils.isOpenTaskReport(report, parentReportAction) && <TaskHeaderActionButton report={report} />}
{canJoin && !shouldUseNarrowLayout && joinButton}
</View>
Expand All @@ -303,7 +305,8 @@ function HeaderView({report, parentReportAction, reportID, onNavigationMenuButto
</View>
)}
</View>
{!isLoading && canJoin && shouldUseNarrowLayout && <View style={[styles.ph5, styles.pb2]}>{joinButton}</View>}
{!isLoading && shouldUseNarrowLayout && <View style={[styles.pb3, styles.ph5]}>{freeTrialButton}</View>}
{!isLoading && canJoin && shouldUseNarrowLayout && <View style={[styles.ph5, styles.m2]}>{joinButton}</View>}
</View>
);
}
Expand Down

0 comments on commit 02977e9

Please sign in to comment.