Skip to content

Commit

Permalink
feat(index.jsx): add state
Browse files Browse the repository at this point in the history
  • Loading branch information
Hadj-Said-Bouras committed Nov 23, 2023
1 parent 38aadfe commit 054e162
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/pages/addItemPage/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,15 @@ import React, { useState, useRef } from "react";
import { BiSolidDownArrow } from "react-icons/bi";

export default function Index() {
const [title, setTitle] = useState("");
const [category, setCategory] = useState("");
const [state, setState] = useState("");
const [city, setCity] = useState("");
const [price, setPrice] = useState();
const [description, setDescription] = useState("");
const [selectedPhotos, setSelectedPhotos] = useState([]);
const [deleteIndices, setDeleteIndices] = useState([]);

const fileInputRef = useRef(null);

const handleFileChange = (e) => {
Expand Down

0 comments on commit 054e162

Please sign in to comment.