design upgrade
This commit is contained in:
@@ -1,11 +1,10 @@
|
||||
"use client"
|
||||
|
||||
import { Button } from "@/components/ui/button"
|
||||
import CartTotals from "@modules/common/components/cart-totals"
|
||||
import { Separator } from "@/components/ui/separator"
|
||||
import DiscountCode from "@modules/checkout/components/discount-code"
|
||||
import LocalizedClientLink from "@modules/common/components/localized-client-link"
|
||||
import { HttpTypes } from "@medusajs/types"
|
||||
import { ArrowRight } from "lucide-react"
|
||||
|
||||
type SummaryProps = {
|
||||
cart: HttpTypes.StoreCart
|
||||
@@ -25,22 +24,22 @@ const Summary = ({ cart }: SummaryProps) => {
|
||||
const step = getCheckoutStep(cart)
|
||||
|
||||
return (
|
||||
<div className="flex flex-col gap-4">
|
||||
<h2 className="text-xl font-bold tracking-tight text-foreground">
|
||||
Pregled Narudžbe
|
||||
</h2>
|
||||
<DiscountCode cart={cart} />
|
||||
<Separator />
|
||||
<CartTotals totals={cart} />
|
||||
<div className="rounded-2xl bg-muted p-6 sm:p-8">
|
||||
<p className="eyebrow text-muted-foreground">Pregled narudžbe</p>
|
||||
<div className="mt-6">
|
||||
<CartTotals totals={cart} />
|
||||
</div>
|
||||
<LocalizedClientLink
|
||||
href={"/checkout?step=" + step}
|
||||
data-testid="checkout-button"
|
||||
className="w-full"
|
||||
className="mt-6 flex h-12 w-full items-center justify-center gap-2 rounded-md bg-primary text-sm text-primary-foreground transition-colors hover:bg-primary/90"
|
||||
>
|
||||
<Button className="w-full h-11 text-base font-semibold">
|
||||
Nastavi na plaćanje
|
||||
</Button>
|
||||
Nastavite na plaćanje
|
||||
<ArrowRight className="h-4 w-4" />
|
||||
</LocalizedClientLink>
|
||||
<div className="mt-6 border-t border-border pt-6">
|
||||
<DiscountCode cart={cart} />
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user