From 260ec92ab5795bca5c79c216364c79e02325aae4 Mon Sep 17 00:00:00 2001 From: dhruv Date: Sat, 5 Oct 2024 23:57:12 +0530 Subject: [PATCH 1/2] Added conditional to consider the case where both Icon and Text are provided, also added a css preset for the same --- app/components/Header.tsx | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/app/components/Header.tsx b/app/components/Header.tsx index b018ebc..d2ca6d9 100644 --- a/app/components/Header.tsx +++ b/app/components/Header.tsx @@ -233,6 +233,27 @@ function HeaderAction(props: HeaderActionProps) { if (ActionComponent) return ActionComponent + if (content && icon) { + return ( + + + + + ) + } + if (content) { return ( Date: Sun, 6 Oct 2024 00:01:12 +0530 Subject: [PATCH 2/2] Uncommented the text prop for the action --- app/screens/ContentViewScreen.tsx | 2 +- app/screens/VideoPlayerScreen.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/screens/ContentViewScreen.tsx b/app/screens/ContentViewScreen.tsx index 4025c9f..9614916 100644 --- a/app/screens/ContentViewScreen.tsx +++ b/app/screens/ContentViewScreen.tsx @@ -33,7 +33,7 @@ export const ContentViewScreen: FC = observer(function C
= observer(function V