From a47a11900a066142c8dc25c6cb20fe7177f4b3f7 Mon Sep 17 00:00:00 2001 From: Edmel John Linaugo <68092712+EdmelKun@users.noreply.github.com> Date: Sun, 17 Dec 2023 04:54:02 +0800 Subject: [PATCH] chore: adjusted headers and changed tip placement --- .../bottom-sheet/ChoiceBottomSheet.tsx | 15 ++++----------- .../expo/src/components/cards/QuestionCard.tsx | 2 +- .../src/components/headers/SettingsHeader.tsx | 3 ++- .../components/headers/ViewAllScreenHeader.tsx | 18 +++++++++--------- 4 files changed, 16 insertions(+), 22 deletions(-) diff --git a/apps/expo/src/components/bottom-sheet/ChoiceBottomSheet.tsx b/apps/expo/src/components/bottom-sheet/ChoiceBottomSheet.tsx index 6ca4a674..9deed68c 100644 --- a/apps/expo/src/components/bottom-sheet/ChoiceBottomSheet.tsx +++ b/apps/expo/src/components/bottom-sheet/ChoiceBottomSheet.tsx @@ -5,7 +5,6 @@ import { ChatIcon, CheckboxIcon, } from "../../icons/bottom-sheet"; -import { Foundation } from "@expo/vector-icons"; import type { FC } from "react"; import type { QuestionType } from "../../stores/useQuestionStore"; @@ -30,23 +29,17 @@ const ChoiceBottomSheet: FC = ({ return ( - - - - + - - Just a tip! - - - Please create at least one (1) question to save the test! + + Please choose your question type! {/* Horizontal Line */} - + {/* Cards Choices */} diff --git a/apps/expo/src/components/cards/QuestionCard.tsx b/apps/expo/src/components/cards/QuestionCard.tsx index e5ad5716..7b60c50f 100644 --- a/apps/expo/src/components/cards/QuestionCard.tsx +++ b/apps/expo/src/components/cards/QuestionCard.tsx @@ -87,7 +87,7 @@ const QuestionCard: FC = ({ numberOfLines={1} ellipsizeMode="tail" > - {truncateString(question.title, 25)} + {truncateString(question.title, 20)} diff --git a/apps/expo/src/components/headers/SettingsHeader.tsx b/apps/expo/src/components/headers/SettingsHeader.tsx index ea75c1e4..b3245a49 100644 --- a/apps/expo/src/components/headers/SettingsHeader.tsx +++ b/apps/expo/src/components/headers/SettingsHeader.tsx @@ -15,7 +15,8 @@ const SettingsHeader: FC = ({ screenName }) => { diff --git a/apps/expo/src/components/headers/ViewAllScreenHeader.tsx b/apps/expo/src/components/headers/ViewAllScreenHeader.tsx index a2e307cf..dfa9e453 100644 --- a/apps/expo/src/components/headers/ViewAllScreenHeader.tsx +++ b/apps/expo/src/components/headers/ViewAllScreenHeader.tsx @@ -46,21 +46,21 @@ const ViewAllScreenHeader: FC = ({ /> ) : ( - - + + - - {props.title} - + + {props.title} + {displaySearchBar && (