A component Made For Desktop Layout

temp
Pedram Keshavarzi 3 years ago
parent 1cc2893bc9
commit 6bd1f788d3
  1. 11
      src/views/Product/Desktop/index.js
  2. 3
      src/views/Product/index.js

@ -0,0 +1,11 @@
import React from "react";
const DesktopProductLayout = () =>{
return (
<div className="w-full flex flex-row gap-10 px-5 overflow-y-hidden mt-3">
Desktop
</div>
);
};
export default DesktopProductLayout;

@ -8,6 +8,7 @@ import Button from "../../components/Button";
import Header from "../../components/Header"; import Header from "../../components/Header";
import Comment from "./Comment"; import Comment from "./Comment";
import Rate from "./Rate"; import Rate from "./Rate";
import DesktopProductLayout from "./Desktop";
export const Product = ({ export const Product = ({
isMobile, isMobile,
@ -173,7 +174,7 @@ export const Product = ({
<Comment key={index} /> <Comment key={index} />
))} ))}
</div> </div>
</div>) : <div>Desktop</div>} </div>) : <DesktopProductLayout />}
</> </>
); );
}; };

Loading…
Cancel
Save