From f99e0aba70efad0deb907d8e27f09fc9f527c8a4 Mon Sep 17 00:00:00 2001 From: Rafi Zadanly Date: Fri, 17 Feb 2023 17:07:50 +0700 Subject: Refactor --- src/pages/shop/cart.jsx | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 src/pages/shop/cart.jsx (limited to 'src/pages/shop/cart.jsx') diff --git a/src/pages/shop/cart.jsx b/src/pages/shop/cart.jsx new file mode 100644 index 00000000..20279e0c --- /dev/null +++ b/src/pages/shop/cart.jsx @@ -0,0 +1,10 @@ +import AppLayout from "@/core/components/layouts/AppLayout" +import CartComponent from "@/lib/cart/components/Cart" + +export default function Cart() { + return ( + + + + ) +} \ No newline at end of file -- cgit v1.2.3 From 69f55de26319e570ce0a8c4dbe8a29cb0d0b51c5 Mon Sep 17 00:00:00 2001 From: Rafi Zadanly Date: Sat, 18 Feb 2023 22:03:55 +0700 Subject: optimization --- src/pages/shop/cart.jsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/pages/shop/cart.jsx') diff --git a/src/pages/shop/cart.jsx b/src/pages/shop/cart.jsx index 20279e0c..735ea19f 100644 --- a/src/pages/shop/cart.jsx +++ b/src/pages/shop/cart.jsx @@ -1,5 +1,7 @@ -import AppLayout from "@/core/components/layouts/AppLayout" -import CartComponent from "@/lib/cart/components/Cart" +import dynamic from "next/dynamic" + +const AppLayout = dynamic(() => import("@/core/components/layouts/AppLayout")) +const CartComponent = dynamic(() => import("@/lib/cart/components/Cart")) export default function Cart() { return ( -- cgit v1.2.3 From f66b12fd1d0b83af0d7230d7b1565fbe00afbe3c Mon Sep 17 00:00:00 2001 From: Rafi Zadanly Date: Wed, 22 Feb 2023 11:03:34 +0700 Subject: prettier --- src/pages/shop/cart.jsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/pages/shop/cart.jsx') diff --git a/src/pages/shop/cart.jsx b/src/pages/shop/cart.jsx index 735ea19f..97f98843 100644 --- a/src/pages/shop/cart.jsx +++ b/src/pages/shop/cart.jsx @@ -1,12 +1,12 @@ -import dynamic from "next/dynamic" +import dynamic from 'next/dynamic' -const AppLayout = dynamic(() => import("@/core/components/layouts/AppLayout")) -const CartComponent = dynamic(() => import("@/lib/cart/components/Cart")) +const AppLayout = dynamic(() => import('@/core/components/layouts/AppLayout')) +const CartComponent = dynamic(() => import('@/lib/cart/components/Cart')) export default function Cart() { return ( - + ) -} \ No newline at end of file +} -- cgit v1.2.3