fix edit header
This commit is contained in:
@@ -163,9 +163,7 @@ export default function UserNotices() {
|
|||||||
<Button
|
<Button
|
||||||
className="ml-2"
|
className="ml-2"
|
||||||
onPress={() => {
|
onPress={() => {
|
||||||
router.replace(
|
router.replace(`notice/edit/${item.noticeId}`);
|
||||||
`dashboard/notice/edit/${item.noticeId}`
|
|
||||||
);
|
|
||||||
}}
|
}}
|
||||||
size="md"
|
size="md"
|
||||||
variant="outline"
|
variant="outline"
|
||||||
|
|||||||
@@ -32,7 +32,8 @@ import { useNoticesStore } from "@/store/noticesStore";
|
|||||||
import { listCategories } from "@/api/categories";
|
import { listCategories } from "@/api/categories";
|
||||||
import { useRouter } from "expo-router";
|
import { useRouter } from "expo-router";
|
||||||
import { attributes } from "@/data/attributesData";
|
import { attributes } from "@/data/attributesData";
|
||||||
import { useLocalSearchParams } from "expo-router";
|
import { useLocalSearchParams, Stack } from "expo-router";
|
||||||
|
import { Ionicons } from "@expo/vector-icons";
|
||||||
|
|
||||||
export default function EditNotice() {
|
export default function EditNotice() {
|
||||||
const { id } = useLocalSearchParams();
|
const { id } = useLocalSearchParams();
|
||||||
@@ -215,6 +216,22 @@ export default function EditNotice() {
|
|||||||
style={{ flex: 1 }}
|
style={{ flex: 1 }}
|
||||||
keyboardVerticalOffset={Platform.OS === "ios" ? 64 : 0}
|
keyboardVerticalOffset={Platform.OS === "ios" ? 64 : 0}
|
||||||
>
|
>
|
||||||
|
<Stack.Screen
|
||||||
|
options={{
|
||||||
|
title: "Edyjca",
|
||||||
|
headerLeft: () => (
|
||||||
|
<Button
|
||||||
|
variant="link"
|
||||||
|
size="sm"
|
||||||
|
onPress={() => router.replace("/(tabs)/dashboard/userNotices")}
|
||||||
|
className="mr-2"
|
||||||
|
>
|
||||||
|
<Ionicons name="arrow-back" size={24} color="#1c1c1e" />
|
||||||
|
<ButtonText className="text-typography-900">Wróć</ButtonText>
|
||||||
|
</Button>
|
||||||
|
),
|
||||||
|
}}
|
||||||
|
/>
|
||||||
<ScrollView h="$80" w="$80">
|
<ScrollView h="$80" w="$80">
|
||||||
<FormControl className="p-4 border rounded-lg border-outline-300">
|
<FormControl className="p-4 border rounded-lg border-outline-300">
|
||||||
<VStack space="xl">
|
<VStack space="xl">
|
||||||
Reference in New Issue
Block a user