صفحه بندی که نوشتم درست کار کرد | 30

temp
mahdi andalib 2 years ago
parent d068099f93
commit 66a498e6f0
  1. 6
      src/views/Products/layouts/Desktop/Main.js

@ -137,7 +137,7 @@ export const Main = ({
useEffect(() => {
const fetchPosts = async () => {
setLoading(true);
const res = await axios.get("https://jsonplaceholder.typicode.com/posts");
const res = await axios.get("https://dnvn.ir/api/v1/userProduct/list");
setPosts(res.data);
setLoading(false);
};
@ -259,7 +259,7 @@ export const Main = ({
</div>
)}
{books.length > 0 && (
<div className="relative w-full mt-7" style={{ direction: "ltr" }}>
<div className="relative w-full mt-7 " style={{ direction: "ltr" }}>
<Carousel
show={Math.round(window.innerWidth / 666)}
slide={2}
@ -297,7 +297,7 @@ export const Main = ({
</Carousel>
</div>
)}
<div className="w-full flex flex-row flex-wrap mt-0 border-t-2 border-solid border-gray-100 overflow-y-hidden gap-4 justify-evenly pt-3">
<div className="w-full flex flex-row flex-wrap bg-blue-400 mt-0 border-t-2 border-solid border-gray-100 overflow-y-hidden gap-4 justify-evenly pt-3">
{Items(1)}
</div>
</div>

Loading…
Cancel
Save