(chore) chnage active id

This commit is contained in:
alij
2024-11-10 19:47:59 +03:30
parent 672a765ede
commit 3cc3dc3542

View File

@@ -8,7 +8,9 @@ import { useSelector } from "react-redux";
const ProductList = () => { const ProductList = () => {
const { id } = useSelector((state: RootState) => state.configIdState); const { id } = useSelector((state: RootState) => state.configIdState);
const [activeId, setActiveId] = useState(4);
// soheil
const [activeId, setActiveId] = useState(2);
const axios = useAxios(); const axios = useAxios();
const { data, error, isLoading, isFetching } = useQuery({ const { data, error, isLoading, isFetching } = useQuery({
queryKey: ["categories"], queryKey: ["categories"],