From 2aeaca212210289fbd821c2875494f23efce44a2 Mon Sep 17 00:00:00 2001 From: Robin Drexler Date: Thu, 17 Aug 2023 13:24:38 -0400 Subject: [PATCH] fix api prop in customer account --- .../src/CustomerAccountExtension.liquid | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/customer-account-extension/src/CustomerAccountExtension.liquid b/customer-account-extension/src/CustomerAccountExtension.liquid index 015f93d..94575c4 100644 --- a/customer-account-extension/src/CustomerAccountExtension.liquid +++ b/customer-account-extension/src/CustomerAccountExtension.liquid @@ -1,15 +1,15 @@ {%- if flavor contains "react" -%} import React from 'react'; import {render, Banner} from '@shopify/customer-account-ui-extensions-react'; - + render('customer-account.dynamic.render', (api) => ); - - function App(api) { + + function App({api}) { return {api.i18n.translate("welcome")}; } {%- else -%} import { extend, Banner } from "@shopify/customer-account-ui-extensions"; - + extend('customer-account.dynamic.render', (root, api) => { const { i18n } = api;