From 69d7bd767f1b720ea5d1d5124374281e3449a48d Mon Sep 17 00:00:00 2001 From: Rafi Zadanly Date: Thu, 29 Dec 2022 09:04:39 +0700 Subject: no message --- src/components/AppBar.js | 15 ++++++++------- src/components/LineDivider.js | 7 +++++++ src/components/ProgressBar.js | 2 +- src/pages/shop/cart.js | 9 +++++---- 4 files changed, 21 insertions(+), 12 deletions(-) create mode 100644 src/components/LineDivider.js (limited to 'src') diff --git a/src/components/AppBar.js b/src/components/AppBar.js index 68a93f64..869e4fff 100644 --- a/src/components/AppBar.js +++ b/src/components/AppBar.js @@ -1,5 +1,4 @@ -import { HeartIcon, HomeIcon } from "@heroicons/react/24/outline"; -import { ChevronLeftIcon } from "@heroicons/react/24/solid"; +import { ArrowLeftIcon, HeartIcon, HomeIcon } from "@heroicons/react/24/outline"; import Head from "next/head"; import { useRouter } from "next/router"; import Link from "./Link"; @@ -12,12 +11,14 @@ const AppBar = ({ title }) => { { title } - Indoteknik -
+
{/* --- Start Title */} - +
+ +

{ title }

+
{/* --- End Title */} {/* --- Start Icons */} diff --git a/src/components/LineDivider.js b/src/components/LineDivider.js new file mode 100644 index 00000000..ce92f4ee --- /dev/null +++ b/src/components/LineDivider.js @@ -0,0 +1,7 @@ +const LineDivider = () => { + return ( +
+ ); +}; + +export default LineDivider; \ No newline at end of file diff --git a/src/components/ProgressBar.js b/src/components/ProgressBar.js index 8a2df0a4..0adedcdf 100644 --- a/src/components/ProgressBar.js +++ b/src/components/ProgressBar.js @@ -6,7 +6,7 @@ const ProgressBar = ({ current, labels }) => { {labels.map((label, index) => (
-
+
{ index + 1 }

{ label }

diff --git a/src/pages/shop/cart.js b/src/pages/shop/cart.js index dfb24990..9fd44410 100644 --- a/src/pages/shop/cart.js +++ b/src/pages/shop/cart.js @@ -27,6 +27,7 @@ import Alert from "../../components/Alert"; import Spinner from "../../components/Spinner"; import AppBar from "../../components/AppBar"; import ProgressBar from "../../components/ProgressBar"; +import LineDivider from "../../components/LineDivider"; export default function Cart() { const router = useRouter(); @@ -182,10 +183,10 @@ export default function Cart() { labels={['Keranjang', 'Pembayaran', 'Selesai']} /> -
+ {/* --- Start Alert */} - +
@@ -193,7 +194,7 @@ export default function Cart() {
{/* ---- End Alert */} -
+
{/* [Start] Product List */} @@ -264,7 +265,7 @@ export default function Cart() { {/* [End] Product List */}
-
+
{/* [Start] Review Order */} -- cgit v1.2.3