Skip to content

Commit

Permalink
Merge pull request #17 from hyva-themes/1.0.5/changes
Browse files Browse the repository at this point in the history
updating repo with latest build
  • Loading branch information
rajeev-k-tomy authored Feb 3, 2022
2 parents 6f4a157 + b6e1461 commit 680bd8f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
3 changes: 0 additions & 3 deletions reactapp/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,4 @@ build
public/tailwind.output.css
public/styles.css
src/paymentMethods/*
!src/paymentMethods/paymentConfig.json
!src/paymentMethods/customRenderers.js
!src/paymentMethods/i18nProvider.js
!src/paymentMethods/utility
3 changes: 2 additions & 1 deletion view/frontend/templates/react-script.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ use Magento\Framework\View\Element\Template;

/** @var Template $block */
/** @var Escaper $escaper */
$buildJsFile = 'Hyva_CheckoutExample::js/react-checkout.js';
?>
<script>
function loadReactCartScript () {
Expand All @@ -15,7 +16,7 @@ use Magento\Framework\View\Element\Template;

newScript.async = true;
newScript.defer = true;
newScript.src = '<?= $escaper->escapeUrl($block->getViewFileUrl('Hyva_CheckoutExample::js/react-checkout.js')); ?>';
newScript.src = '<?= $escaper->escapeUrl($block->getViewFileUrl($buildJsFile)); ?>';

firstScript.parentNode.insertBefore(newScript, firstScript);
}
Expand Down
2 changes: 1 addition & 1 deletion view/frontend/web/js/react-checkout.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion view/frontend/web/js/react-checkout.js.map

Large diffs are not rendered by default.

0 comments on commit 680bd8f

Please sign in to comment.