From 7cb4f30ae97bfe8daefad1474dadb883d910ed74 Mon Sep 17 00:00:00 2001 From: bagasbanuna Date: Thu, 2 Apr 2026 16:13:23 +0800 Subject: [PATCH] refactor: Replace NewWrapper with NewWrapper_V2 for all Job screens MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - ScreenBeranda2.tsx: NewWrapper → NewWrapper_V2 - ScreenArchive2.tsx: NewWrapper → NewWrapper_V2 - MainViewStatus2.tsx: NewWrapper → NewWrapper_V2 All Job screens now using NewWrapper_V2 with: - Better keyboard handling - Footer width 100% - Content padding bottom 80px - Auto-scroll to focused input (for forms) - No white area when keyboard close Phase 1 completed: All Job screens migrated! Co-authored-by: Qwen-Coder --- screens/Job/MainViewStatus2.tsx | 5 ++--- screens/Job/ScreenArchive2.tsx | 5 ++--- screens/Job/ScreenBeranda2.tsx | 4 ++-- 3 files changed, 6 insertions(+), 8 deletions(-) diff --git a/screens/Job/MainViewStatus2.tsx b/screens/Job/MainViewStatus2.tsx index 7e4c364..d4ee1c6 100644 --- a/screens/Job/MainViewStatus2.tsx +++ b/screens/Job/MainViewStatus2.tsx @@ -1,6 +1,5 @@ /* eslint-disable react-hooks/exhaustive-deps */ -import { BaseBox, ScrollableCustom, TextCustom } from "@/components"; -import NewWrapper from "@/components/_ShareComponent/NewWrapper"; +import { BaseBox, NewWrapper_V2, ScrollableCustom, TextCustom } from "@/components"; import { MainColor } from "@/constants/color-palet"; import { PAGINATION_DEFAULT_TAKE } from "@/constants/constans-value"; import { createPaginationComponents } from "@/helpers/paginationHelpers"; @@ -87,7 +86,7 @@ export default function Job_MainViewStatus2() { ); return ( - {scrollComponent}} listData={pagination.listData} renderItem={renderJobItem} diff --git a/screens/Job/ScreenArchive2.tsx b/screens/Job/ScreenArchive2.tsx index 256a831..12d8978 100644 --- a/screens/Job/ScreenArchive2.tsx +++ b/screens/Job/ScreenArchive2.tsx @@ -1,5 +1,5 @@ /* eslint-disable react-hooks/exhaustive-deps */ -import { BaseBox, TextCustom, ViewWrapper } from "@/components"; +import { BaseBox, NewWrapper_V2, TextCustom, ViewWrapper } from "@/components"; import { MainColor } from "@/constants/color-palet"; import { createPaginationComponents } from "@/helpers/paginationHelpers"; import { useAuth } from "@/hooks/use-auth"; @@ -9,7 +9,6 @@ import { useFocusEffect } from "expo-router"; import _ from "lodash"; import { useState } from "react"; import { RefreshControl } from "react-native"; -import NewWrapper from "@/components/_ShareComponent/NewWrapper"; import { PAGINATION_DEFAULT_TAKE } from "@/constants/constans-value"; export default function Job_ScreenArchive2() { @@ -56,7 +55,7 @@ export default function Job_ScreenArchive2() { ); return ( -