Skip to content

Commit

Permalink
Fixing Prettier Issues
Browse files Browse the repository at this point in the history
  • Loading branch information
del15881 committed Jan 30, 2025
1 parent 523505a commit 9b81bc9
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 14 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module.exports = (targets) => {
module.exports = targets => {
const { specialFeatures } = targets.of('@magento/pwa-buildpack');
specialFeatures.tap((flags) => {
specialFeatures.tap(flags => {
/**
* Wee need to activate esModules, cssModules and GQL Queries to allow build pack to load our extension
* {@link https://magento.github.io/pwa-studio/pwa-buildpack/reference/configure-webpack/#special-flags}.
Expand All @@ -17,21 +17,21 @@ module.exports = (targets) => {
editablePaymentTypes,
summaryPagePaymentTypes
} = targets.of('@magento/venia-ui');
checkoutPagePaymentTypes.tap((payments) =>
checkoutPagePaymentTypes.tap(payments =>
payments.add({
paymentCode: 'cashondelivery',
importPath:
'@magento/venia-sample-payments-cashondelivery/src/components/cashondelivery.js'
})
);
editablePaymentTypes.tap((editablePaymentTypes) => {
editablePaymentTypes.tap(editablePaymentTypes => {
editablePaymentTypes.add({
paymentCode: 'cashondelivery',
importPath:
'@magento/venia-sample-payments-cashondelivery/src/components/editcod.js'
});
});
summaryPagePaymentTypes.tap((paymentSummaries) =>
summaryPagePaymentTypes.tap(paymentSummaries =>
paymentSummaries.add({
paymentCode: 'cashondelivery',
importPath:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jest.mock('../../talons/useCashondelivery', () => {

jest.mock(
'@magento/venia-ui/lib/components/CheckoutPage/BillingAddress',
() => (props) => <mock-BillingAddress {...props} />
() => props => <mock-BillingAddress {...props} />
);

const useCashondeliveryReturnValue = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { createTestInstance } from '@magento/peregrine';
import EditCod from '../editcod';

jest.mock('@magento/venia-ui/lib/classify');
jest.mock('../cashondelivery', () => (props) => (
jest.mock('../cashondelivery', () => props => (
<mock-CashOnDelivery {...props} />
));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ import SummaryCod from '../summarycod';

jest.mock('@magento/venia-ui/lib/classify');
jest.mock('react-intl', () => ({
FormattedMessage: (props) => (
FormattedMessage: props => (
<div componentName="Formatted Message Component" {...props} />
)
}));
jest.mock('@magento/venia-ui/lib/components/LinkButton', () => (props) => (
jest.mock('@magento/venia-ui/lib/components/LinkButton', () => props => (
<mock-LinkButton {...props} />
));
jest.mock('@magento/venia-ui/lib/components/Icon', () => (props) => (
jest.mock('@magento/venia-ui/lib/components/Icon', () => props => (
<mock-Icon {...props} />
));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import defaultClasses from './cashondelivery.module.css';
* @param {Function} props.onPaymentError callback to invoke when component throws an error
* @param {Function} props.resetShouldSubmit callback to reset the shouldSubmit flag
*/
const CashOnDelivery = (props) => {
const CashOnDelivery = props => {
const classes = useStyle(defaultClasses, props.classes);

const {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import defaultClasses from './cashondelivery.module.css';
/**
* The edit view for the Cod payment method.
*/
const EditCod = (props) => {
const EditCod = props => {
const {
onPaymentReady,
onPaymentSuccess,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import defaultClasses from './summary.module.css';
/**
* The SummaryCod component of the Cash On Delivery payment method extension.
*/
const SummaryCod = (props) => {
const SummaryCod = props => {
const { onEdit } = props;

const classes = useStyle(defaultClasses, props.classes);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import DEFAULT_OPERATIONS from './cashondelivery.gql';
* onBillingAddressChangedSuccess: Function
* }
*/
export const useCashondelivery = (props) => {
export const useCashondelivery = props => {
const operations = mergeOperations(DEFAULT_OPERATIONS, props.operations);

const { setCodPaymentMethodOnCartMutation } = operations;
Expand Down

0 comments on commit 9b81bc9

Please sign in to comment.