Skip to content

Commit

Permalink
fix: eslint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
dkoo committed Jan 30, 2024
1 parent 42e145b commit 3a15ae5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
7 changes: 1 addition & 6 deletions src/blocks/donate/edit/TierBasedLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,7 @@ import classNames from 'classnames';
/**
* Internal dependencies
*/
import type {
ComponentProps,
DonationFrequencySlug,
DonateBlockAttributes,
TierBasedOptionValue,
} from '../types';
import type { ComponentProps, DonateBlockAttributes, TierBasedOptionValue } from '../types';
import { getColorForContrast, getFrequencyLabel } from '../utils';
import { FREQUENCIES, DISABLED_IN_TIERS_BASED_LAYOUT_TIER_INDEX } from '../consts';

Expand Down
1 change: 1 addition & 0 deletions src/blocks/donate/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ export const getFrequencyLabel = (
* <span class="wpbnbd__tiers__amount__frequency">per month</span>
*/
return sprintf(
// eslint-disable-next-line @wordpress/i18n-translator-comments
_x(
'%1$s %2$s',
'%1$s is the amount (with currency symbol). %2$s is the frequency of the donation. Inludes embedded HTML tags for styling.',
Expand Down

0 comments on commit 3a15ae5

Please sign in to comment.