refactor: Update header components and improve job edit footer layout

- Replace Waiting Room header with AppHeader component
- Replace Profile Create header with AppHeader with showBack=false
- Wrap Job Edit submit button with BoxButtonOnFooter for consistent footer layout

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
This commit is contained in:
2026-04-06 17:49:28 +08:00
parent b34bc3799e
commit 44d9025afe
3 changed files with 13 additions and 11 deletions

View File

@@ -21,8 +21,7 @@ export default function UserLayout() {
<Stack.Screen <Stack.Screen
name="waiting-room" name="waiting-room"
options={{ options={{
title: "Waiting Room", header: () => <AppHeader title="Waiting Room" />,
headerBackVisible: false,
}} }}
/> />

View File

@@ -23,7 +23,11 @@ export default function ProfileLayout() {
/> />
<Stack.Screen <Stack.Screen
name="create" name="create"
options={{ headerBackVisible: false }} options={{
header: () => (
<AppHeader title="Tambah Profil" showBack={false} />
),
}}
/> />
<Stack.Screen <Stack.Screen

View File

@@ -1,6 +1,7 @@
/* eslint-disable react-hooks/exhaustive-deps */ /* eslint-disable react-hooks/exhaustive-deps */
import { import {
BaseBox, BaseBox,
BoxButtonOnFooter,
ButtonCenteredOnly, ButtonCenteredOnly,
ButtonCustom, ButtonCustom,
DummyLandscapeImage, DummyLandscapeImage,
@@ -15,10 +16,7 @@ import {
} from "@/components"; } from "@/components";
import DIRECTORY_ID from "@/constants/directory-id"; import DIRECTORY_ID from "@/constants/directory-id";
import { apiJobGetOne, apiJobUpdateData } from "@/service/api-client/api-job"; import { apiJobGetOne, apiJobUpdateData } from "@/service/api-client/api-job";
import { import { deleteFileService, uploadFileService } from "@/service/upload-service";
deleteFileService,
uploadFileService,
} from "@/service/upload-service";
import pickImage from "@/utils/pickImage"; import pickImage from "@/utils/pickImage";
import { router, useLocalSearchParams } from "expo-router"; import { router, useLocalSearchParams } from "expo-router";
import { useEffect, useState } from "react"; import { useEffect, useState } from "react";
@@ -126,10 +124,11 @@ export function Job_ScreenEdit() {
const buttonSubmit = () => { const buttonSubmit = () => {
return ( return (
<> <>
<BoxButtonOnFooter>
<ButtonCustom isLoading={isLoading} onPress={() => handlerOnUpdate()}> <ButtonCustom isLoading={isLoading} onPress={() => handlerOnUpdate()}>
Update Update
</ButtonCustom> </ButtonCustom>
<Spacing /> </BoxButtonOnFooter>
</> </>
); );
}; };