add attribures to notices list

This commit is contained in:
Patryk
2025-06-10 21:34:02 +02:00
parent 83f105eff1
commit bcc646e4ef
3 changed files with 103 additions and 32 deletions

View File

@@ -31,6 +31,7 @@ import { ChevronDownIcon } from "@/components/ui/icon";
import { useNoticesStore } from "@/store/noticesStore";
import { listCategories } from "@/api/categories";
import { useRouter } from "expo-router";
import { attributes } from "@/data/attributesData"; // Assuming you have a separate file for attributes data}
export default function CreateNotice() {
const router = useRouter();
@@ -84,35 +85,6 @@ export default function CreateNotice() {
},
});
const attributes = {
Kolor: [
"Zielony",
"Czerwony",
"Niebieski",
"Żółty",
"Biały",
"Czarny",
"Różowy",
"Szary",
"Fioletowy",
"Pomarańczowy",
"Inny",
],
Materiał: [
"Bawełna",
"Wełna",
"Syntetyk",
"Skóra",
"Len",
"Jedwab",
"Poliester",
"Akryl",
"Wiskoza",
"Nylon",
"Inny",
],
};
const handleAddNotice = async () => {
setError({
title: !title,