From 6bd1f788d310659b9c4c4a31e19e5c05cc833042 Mon Sep 17 00:00:00 2001 From: Pedram Keshavarzi Date: Tue, 25 Jan 2022 10:29:27 +0330 Subject: [PATCH] A component Made For Desktop Layout --- src/views/Product/Desktop/index.js | 11 +++++++++++ src/views/Product/index.js | 3 ++- 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 src/views/Product/Desktop/index.js diff --git a/src/views/Product/Desktop/index.js b/src/views/Product/Desktop/index.js new file mode 100644 index 0000000..ac958a4 --- /dev/null +++ b/src/views/Product/Desktop/index.js @@ -0,0 +1,11 @@ +import React from "react"; + +const DesktopProductLayout = () =>{ + return ( +
+ Desktop +
+ ); +}; + +export default DesktopProductLayout; \ No newline at end of file diff --git a/src/views/Product/index.js b/src/views/Product/index.js index 041561b..a7e1ed4 100644 --- a/src/views/Product/index.js +++ b/src/views/Product/index.js @@ -8,6 +8,7 @@ import Button from "../../components/Button"; import Header from "../../components/Header"; import Comment from "./Comment"; import Rate from "./Rate"; +import DesktopProductLayout from "./Desktop"; export const Product = ({ isMobile, @@ -173,7 +174,7 @@ export const Product = ({ ))} - ) :
Desktop
} + ) : } ); };