design upgrade
This commit is contained in:
@@ -44,19 +44,19 @@ const Addresses = ({
|
||||
<div className="flex flex-row items-center justify-between mb-6">
|
||||
<Heading
|
||||
level="h2"
|
||||
className="flex flex-row text-3xl-regular gap-x-2 items-baseline"
|
||||
className="flex flex-row font-display text-3xl gap-x-2 items-baseline"
|
||||
>
|
||||
Shipping Address
|
||||
Adresa dostave
|
||||
{!isOpen && <CheckCircleSolid />}
|
||||
</Heading>
|
||||
{!isOpen && cart?.shipping_address && (
|
||||
<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-address-button"
|
||||
>
|
||||
Edit
|
||||
Izmijeni
|
||||
</button>
|
||||
</Text>
|
||||
)}
|
||||
@@ -75,23 +75,23 @@ const Addresses = ({
|
||||
<div>
|
||||
<Heading
|
||||
level="h2"
|
||||
className="text-3xl-regular gap-x-4 pb-6 pt-8"
|
||||
className="font-display text-3xl gap-x-4 pb-6 pt-8"
|
||||
>
|
||||
Billing address
|
||||
Adresa za račun
|
||||
</Heading>
|
||||
|
||||
<BillingAddress cart={cart} />
|
||||
</div>
|
||||
)}
|
||||
<SubmitButton className="mt-6" data-testid="submit-address-button">
|
||||
Continue to delivery
|
||||
Nastavite na dostavu
|
||||
</SubmitButton>
|
||||
<ErrorMessage error={message} data-testid="address-error-message" />
|
||||
</div>
|
||||
</form>
|
||||
) : (
|
||||
<div>
|
||||
<div className="text-small-regular">
|
||||
<div className="text-sm">
|
||||
{cart && cart.shipping_address ? (
|
||||
<div className="flex items-start gap-x-8">
|
||||
<div className="flex items-start gap-x-1 w-full">
|
||||
@@ -99,22 +99,22 @@ const Addresses = ({
|
||||
className="flex flex-col w-1/3"
|
||||
data-testid="shipping-address-summary"
|
||||
>
|
||||
<Text className="txt-medium-plus text-ui-fg-base mb-1">
|
||||
Shipping Address
|
||||
<Text className="text-sm font-medium text-foreground mb-1">
|
||||
Adresa dostave
|
||||
</Text>
|
||||
<Text className="txt-medium text-ui-fg-subtle">
|
||||
<Text className="text-sm text-muted-foreground">
|
||||
{cart.shipping_address.first_name}{" "}
|
||||
{cart.shipping_address.last_name}
|
||||
</Text>
|
||||
<Text className="txt-medium text-ui-fg-subtle">
|
||||
<Text className="text-sm text-muted-foreground">
|
||||
{cart.shipping_address.address_1}{" "}
|
||||
{cart.shipping_address.address_2}
|
||||
</Text>
|
||||
<Text className="txt-medium text-ui-fg-subtle">
|
||||
<Text className="text-sm text-muted-foreground">
|
||||
{cart.shipping_address.postal_code},{" "}
|
||||
{cart.shipping_address.city}
|
||||
</Text>
|
||||
<Text className="txt-medium text-ui-fg-subtle">
|
||||
<Text className="text-sm text-muted-foreground">
|
||||
{cart.shipping_address.country_code?.toUpperCase()}
|
||||
</Text>
|
||||
</div>
|
||||
@@ -123,13 +123,13 @@ const Addresses = ({
|
||||
className="flex flex-col w-1/3 "
|
||||
data-testid="shipping-contact-summary"
|
||||
>
|
||||
<Text className="txt-medium-plus text-ui-fg-base mb-1">
|
||||
Contact
|
||||
<Text className="text-sm font-medium text-foreground mb-1">
|
||||
Kontakt
|
||||
</Text>
|
||||
<Text className="txt-medium text-ui-fg-subtle">
|
||||
<Text className="text-sm text-muted-foreground">
|
||||
{cart.shipping_address.phone}
|
||||
</Text>
|
||||
<Text className="txt-medium text-ui-fg-subtle">
|
||||
<Text className="text-sm text-muted-foreground">
|
||||
{cart.email}
|
||||
</Text>
|
||||
</div>
|
||||
@@ -138,29 +138,29 @@ const Addresses = ({
|
||||
className="flex flex-col w-1/3"
|
||||
data-testid="billing-address-summary"
|
||||
>
|
||||
<Text className="txt-medium-plus text-ui-fg-base mb-1">
|
||||
Billing Address
|
||||
<Text className="text-sm font-medium text-foreground mb-1">
|
||||
Adresa za račun
|
||||
</Text>
|
||||
|
||||
{sameAsBilling ? (
|
||||
<Text className="txt-medium text-ui-fg-subtle">
|
||||
Billing and delivery address are the same.
|
||||
<Text className="text-sm text-muted-foreground">
|
||||
Adresa za račun ista je kao adresa dostave.
|
||||
</Text>
|
||||
) : (
|
||||
<>
|
||||
<Text className="txt-medium text-ui-fg-subtle">
|
||||
<Text className="text-sm text-muted-foreground">
|
||||
{cart.billing_address?.first_name}{" "}
|
||||
{cart.billing_address?.last_name}
|
||||
</Text>
|
||||
<Text className="txt-medium text-ui-fg-subtle">
|
||||
<Text className="text-sm text-muted-foreground">
|
||||
{cart.billing_address?.address_1}{" "}
|
||||
{cart.billing_address?.address_2}
|
||||
</Text>
|
||||
<Text className="txt-medium text-ui-fg-subtle">
|
||||
<Text className="text-sm text-muted-foreground">
|
||||
{cart.billing_address?.postal_code},{" "}
|
||||
{cart.billing_address?.city}
|
||||
</Text>
|
||||
<Text className="txt-medium text-ui-fg-subtle">
|
||||
<Text className="text-sm text-muted-foreground">
|
||||
{cart.billing_address?.country_code?.toUpperCase()}
|
||||
</Text>
|
||||
</>
|
||||
|
||||
Reference in New Issue
Block a user