import React, { useState } from "react";
import { Link } from "react-router-dom";
import Select from "react-select";
import { all_routes } from "../../Router/all_routes";
import { DatePicker } from "antd";
import Addunits from "../../core/modals/inventory/addunits";
import AddCategory from "../../core/modals/inventory/addcategory";
import AddBrand from "../../core/modals/addbrand";
import {
ArrowLeft,
Calendar,
ChevronDown,
ChevronUp,
Info,
LifeBuoy,
List,
PlusCircle,
Trash2,
X,
} from "feather-icons-react/build/IconComponents";
import { useDispatch, useSelector } from "react-redux";
import { setToogleHeader } from "../../core/redux/action";
import { OverlayTrigger, Tooltip } from "react-bootstrap";
import ImageWithBasePath from "../../core/img/imagewithbasebath";
const EditProduct = () => {
const route = all_routes;
const dispatch = useDispatch();
const data = useSelector((state) => state.toggle_header);
const [selectedDate, setSelectedDate] = useState(new Date());
const handleDateChange = (date) => {
setSelectedDate(date);
};
const [selectedDate1, setSelectedDate1] = useState(new Date());
const handleDateChange1 = (date) => {
setSelectedDate1(date);
};
const renderCollapseTooltip = (props) => (
Collapse
);
const store = [
{ value: "choose", label: "Choose" },
{ value: "thomas", label: "Thomas" },
{ value: "rasmussen", label: "Rasmussen" },
{ value: "fredJohn", label: "Fred John" },
];
const warehouse = [
{ value: "choose", label: "Choose" },
{ value: "legendary", label: "Legendary" },
{ value: "determined", label: "Determined" },
{ value: "sincere", label: "Sincere" },
];
const category = [
{ value: "choose", label: "Choose" },
{ value: "lenovo", label: "Lenovo" },
{ value: "electronics", label: "Electronics" },
];
const subcategory = [
{ value: "choose", label: "Choose" },
{ value: "lenovo", label: "Lenovo" },
{ value: "electronics", label: "Electronics" },
];
const subsubcategories = [
{ value: "Fruits", label: "Fruits" },
{ value: "Computer", label: "Computer" },
{ value: "Shoes", label: "Shoes" },
];
const brand = [
{ value: "choose", label: "Choose" },
{ value: "nike", label: "Nike" },
{ value: "bolt", label: "Bolt" },
];
const unit = [
{ value: "choose", label: "Choose" },
{ value: "kg", label: "Kg" },
{ value: "pc", label: "Pc" },
];
const sellingtype = [
{ value: "choose", label: "Choose" },
{ value: "transactionalSelling", label: "Transactional selling" },
{ value: "solutionSelling", label: "Solution selling" },
];
const barcodesymbol = [
{ value: "choose", label: "Choose" },
{ value: "code34", label: "Code34" },
{ value: "code35", label: "Code35" },
{ value: "code36", label: "Code36" },
];
const taxtype = [
{ value: "exclusive", label: "Exclusive" },
{ value: "salesTax", label: "Sales Tax" },
];
const discounttype = [
{ value: "choose", label: "Choose" },
{ value: "percentage", label: "Percentage" },
{ value: "cash", label: "Cash" },
];
const discounttype1 = [
{ value: "choose", label: "Choose" },
{ value: "percentage", label: "Percentage" },
{ value: "cash", label: "Cash" },
];
const [isImageVisible, setIsImageVisible] = useState(true);
const handleRemoveProduct = () => {
setIsImageVisible(false);
};
const [isImageVisible1, setIsImageVisible1] = useState(true);
const handleRemoveProduct1 = () => {
setIsImageVisible1(false);
};
return (
-
-
{
dispatch(setToogleHeader(!data));
}}
>
{/* /add */}
{/* /add */}
);
};
export default EditProduct;