Skip to content

Commit

Permalink
feat: Implement new sdk and improve network requests
Browse files Browse the repository at this point in the history
  • Loading branch information
acasazza committed Nov 22, 2021
1 parent 4107d1e commit 546b893
Show file tree
Hide file tree
Showing 22 changed files with 281 additions and 293 deletions.
36 changes: 18 additions & 18 deletions pages/checkout-addresses.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ export default function Main() {
<p className="mt-2 text-sm text-red-600" id="email-error">
<Errors
data-cy="customer_email_error"
resource="order"
resource="orders"
field="customer_email"
messages={messages}
/>
Expand Down Expand Up @@ -220,7 +220,7 @@ export default function Main() {
<p className="mt-2 text-sm text-red-600" id="email-error">
<Errors
data-cy="billing_address_first_name_error"
resource="billingAddress"
resource="billing_address"
field="billing_address_first_name"
messages={messages}
/>
Expand All @@ -245,7 +245,7 @@ export default function Main() {
<p className="mt-2 text-sm text-red-600" id="email-error">
<Errors
data-cy="billing_address_last_name_error"
resource="billingAddress"
resource="billing_address"
field="billing_address_last_name"
messages={messages}
/>
Expand All @@ -270,7 +270,7 @@ export default function Main() {
<p className="mt-2 text-sm text-red-600" id="email-error">
<Errors
data-cy="billing_address_line_1_error"
resource="billingAddress"
resource="billing_address"
field="billing_address_line_1"
messages={messages}
/>
Expand All @@ -295,7 +295,7 @@ export default function Main() {
<p className="mt-2 text-sm text-red-600" id="email-error">
<Errors
data-cy="billing_address_city_error"
resource="billingAddress"
resource="billing_address"
field="billing_address_city"
messages={messages}
/>
Expand Down Expand Up @@ -323,7 +323,7 @@ export default function Main() {
<p className="mt-2 text-sm text-red-600" id="email-error">
<Errors
data-cy="billing_address_country_code_error"
resource="billingAddress"
resource="billing_address"
field="billing_address_country_code"
messages={messages}
/>
Expand Down Expand Up @@ -352,7 +352,7 @@ export default function Main() {
<p className="mt-2 text-sm text-red-600" id="email-error">
<Errors
data-cy="billing_address_state_code_error"
resource="billingAddress"
resource="billing_address"
field="billing_address_state_code"
messages={messages}
/>
Expand All @@ -377,7 +377,7 @@ export default function Main() {
<p className="mt-2 text-sm text-red-600" id="email-error">
<Errors
data-cy="billing_address_zip_code_error"
resource="billingAddress"
resource="billing_address"
field="billing_address_zip_code"
messages={messages}
/>
Expand All @@ -402,7 +402,7 @@ export default function Main() {
<p className="mt-2 text-sm text-red-600" id="email-error">
<Errors
data-cy="billing_address_phone_error"
resource="billingAddress"
resource="billing_address"
field="billing_address_phone"
messages={messages}
/>
Expand All @@ -427,7 +427,7 @@ export default function Main() {
<p className="mt-2 text-sm text-red-600" id="email-error">
<Errors
data-cy="billing_address_billing_info"
resource="billingAddress"
resource="billing_address"
field="billing_address_billing_info"
messages={messages}
/>
Expand Down Expand Up @@ -498,7 +498,7 @@ export default function Main() {
<p className="mt-2 text-sm text-red-600" id="email-error">
<Errors
data-cy="shipping_address_first_name_error"
resource="shippingAddress"
resource="shipping_address"
field="shipping_address_first_name"
messages={messages}
/>
Expand All @@ -523,7 +523,7 @@ export default function Main() {
<p className="mt-2 text-sm text-red-600" id="email-error">
<Errors
data-cy="shipping_address_last_name_error"
resource="shippingAddress"
resource="shipping_address"
field="shipping_address_last_name"
messages={messages}
/>
Expand All @@ -548,7 +548,7 @@ export default function Main() {
<p className="mt-2 text-sm text-red-600" id="email-error">
<Errors
data-cy="shipping_address_line_1_error"
resource="shippingAddress"
resource="shipping_address"
field="shipping_address_line_1"
messages={messages}
/>
Expand All @@ -573,7 +573,7 @@ export default function Main() {
<p className="mt-2 text-sm text-red-600" id="email-error">
<Errors
data-cy="shipping_address_city_error"
resource="shippingAddress"
resource="shipping_address"
field="shipping_address_city"
messages={messages}
/>
Expand Down Expand Up @@ -601,7 +601,7 @@ export default function Main() {
<p className="mt-2 text-sm text-red-600" id="email-error">
<Errors
data-cy="shipping_address_country_code_error"
resource="shippingAddress"
resource="shipping_address"
field="shipping_address_country_code"
messages={messages}
/>
Expand Down Expand Up @@ -629,7 +629,7 @@ export default function Main() {
<p className="mt-2 text-sm text-red-600" id="email-error">
<Errors
data-cy="shipping_address_state_code_error"
resource="shippingAddress"
resource="shipping_address"
field="shipping_address_state_code"
messages={messages}
/>
Expand All @@ -654,7 +654,7 @@ export default function Main() {
<p className="mt-2 text-sm text-red-600" id="email-error">
<Errors
data-cy="shipping_address_zip_code_error"
resource="shippingAddress"
resource="shipping_address"
field="shipping_address_zip_code"
messages={messages}
/>
Expand All @@ -679,7 +679,7 @@ export default function Main() {
<p className="mt-2 text-sm text-red-600" id="email-error">
<Errors
data-cy="shipping_address_phone_error"
resource="shippingAddress"
resource="shipping_address"
field="shipping_address_phone"
messages={messages}
/>
Expand Down
Loading

0 comments on commit 546b893

Please sign in to comment.