design upgrade
This commit is contained in:
@@ -116,24 +116,24 @@ const Payment = ({
|
||||
<Heading
|
||||
level="h2"
|
||||
className={clx(
|
||||
"flex flex-row text-3xl-regular gap-x-2 items-baseline",
|
||||
"flex flex-row font-display text-3xl gap-x-2 items-baseline",
|
||||
{
|
||||
"opacity-50 pointer-events-none select-none":
|
||||
!isOpen && !paymentReady,
|
||||
}
|
||||
)}
|
||||
>
|
||||
Payment
|
||||
Plaćanje
|
||||
{!isOpen && paymentReady && <CheckCircleSolid />}
|
||||
</Heading>
|
||||
{!isOpen && paymentReady && (
|
||||
<Text>
|
||||
<button
|
||||
onClick={handleEdit}
|
||||
className="text-ui-fg-interactive hover:text-ui-fg-interactive-hover"
|
||||
className="text-primary hover:text-primary/80"
|
||||
data-testid="edit-payment-button"
|
||||
>
|
||||
Edit
|
||||
Izmijeni
|
||||
</button>
|
||||
</Text>
|
||||
)}
|
||||
@@ -169,14 +169,14 @@ const Payment = ({
|
||||
|
||||
{paidByGiftcard && (
|
||||
<div className="flex flex-col w-1/3">
|
||||
<Text className="txt-medium-plus text-ui-fg-base mb-1">
|
||||
Payment method
|
||||
<Text className="text-sm font-medium text-foreground mb-1">
|
||||
Način plaćanja
|
||||
</Text>
|
||||
<Text
|
||||
className="txt-medium text-ui-fg-subtle"
|
||||
className="text-sm text-muted-foreground"
|
||||
data-testid="payment-method-summary"
|
||||
>
|
||||
Gift card
|
||||
Poklon kartica
|
||||
</Text>
|
||||
</div>
|
||||
)}
|
||||
@@ -198,8 +198,8 @@ const Payment = ({
|
||||
data-testid="submit-payment-button"
|
||||
>
|
||||
{!activeSession && isStripeLike(selectedPaymentMethod)
|
||||
? "Enter payment details"
|
||||
: "Continue to review"}
|
||||
? "Unesite podatke za plaćanje"
|
||||
: "Nastavite na pregled"}
|
||||
</Button>
|
||||
</div>
|
||||
|
||||
@@ -207,11 +207,11 @@ const Payment = ({
|
||||
{cart && paymentReady && activeSession ? (
|
||||
<div className="flex items-start gap-x-1 w-full">
|
||||
<div className="flex flex-col w-1/3">
|
||||
<Text className="txt-medium-plus text-ui-fg-base mb-1">
|
||||
Payment method
|
||||
<Text className="text-sm font-medium text-foreground mb-1">
|
||||
Način plaćanja
|
||||
</Text>
|
||||
<Text
|
||||
className="txt-medium text-ui-fg-subtle"
|
||||
className="text-sm text-muted-foreground"
|
||||
data-testid="payment-method-summary"
|
||||
>
|
||||
{getPaymentInfo(activeSession?.provider_id)?.title ||
|
||||
@@ -219,14 +219,14 @@ const Payment = ({
|
||||
</Text>
|
||||
</div>
|
||||
<div className="flex flex-col w-1/3">
|
||||
<Text className="txt-medium-plus text-ui-fg-base mb-1">
|
||||
Payment details
|
||||
<Text className="text-sm font-medium text-foreground mb-1">
|
||||
Podaci o plaćanju
|
||||
</Text>
|
||||
<div
|
||||
className="flex gap-2 txt-medium text-ui-fg-subtle items-center"
|
||||
className="flex gap-2 text-sm text-muted-foreground items-center"
|
||||
data-testid="payment-details-summary"
|
||||
>
|
||||
<Container className="flex items-center h-7 w-fit p-2 bg-ui-button-neutral-hover">
|
||||
<Container className="flex items-center h-7 w-fit p-2 bg-muted">
|
||||
{getPaymentInfo(selectedPaymentMethod)?.icon || (
|
||||
<CreditCard />
|
||||
)}
|
||||
@@ -237,14 +237,14 @@ const Payment = ({
|
||||
</div>
|
||||
) : paidByGiftcard ? (
|
||||
<div className="flex flex-col w-1/3">
|
||||
<Text className="txt-medium-plus text-ui-fg-base mb-1">
|
||||
Payment method
|
||||
<Text className="text-sm font-medium text-foreground mb-1">
|
||||
Način plaćanja
|
||||
</Text>
|
||||
<Text
|
||||
className="txt-medium text-ui-fg-subtle"
|
||||
className="text-sm text-muted-foreground"
|
||||
data-testid="payment-method-summary"
|
||||
>
|
||||
Gift card
|
||||
Poklon kartica
|
||||
</Text>
|
||||
</div>
|
||||
) : null}
|
||||
|
||||
Reference in New Issue
Block a user