Skip to content

Commit

Permalink
IframeLabelAlternative.tsx renamed to FieldLabelAlternative.tsx now i…
Browse files Browse the repository at this point in the history
…t is not just used for securedField related inputs
  • Loading branch information
sponglord committed Jul 17, 2024
1 parent 2a9a5cf commit a5217e8
Show file tree
Hide file tree
Showing 10 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { h } from 'preact';
import classNames from 'classnames';
import Field from '../../../../internal/FormFields/Field';
import DataSfSpan from '../../../../Card/components/CardInput/components/DataSfSpan';
import { alternativeLabelContent } from '../../../../Card/components/CardInput/components/IframeLabelAlternative';
import { alternativeLabelContent } from '../../../../Card/components/CardInput/components/FieldLabelAlternative';
import { capitalizeFirstLetter } from '../../../../../utils/textUtils';

const AchSFInput = ({ id, dataInfo, className = '', label, focused, filled, errorMessage = '', isValid = false, onFocusField, dir }) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
ENCRYPTED_SECURITY_CODE
} from '../../../../internal/SecuredFields/lib/constants';
import DataSfSpan from './DataSfSpan';
import { alternativeLabelContent } from './IframeLabelAlternative';
import { alternativeLabelContent } from './FieldLabelAlternative';

export default function CVC(props: CVCProps) {
const {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { useCoreContext } from '../../../../../core/Context/CoreProvider';
import { CardNumberProps } from './types';
import DataSfSpan from './DataSfSpan';
import { ENCRYPTED_CARD_NUMBER } from '../../../../internal/SecuredFields/lib/constants';
import { alternativeLabelContent } from './IframeLabelAlternative';
import { alternativeLabelContent } from './FieldLabelAlternative';

export default function CardNumber(props: CardNumberProps) {
const { i18n } = useCoreContext();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
ENCRYPTED_EXPIRY_DATE
} from '../../../../internal/SecuredFields/lib/constants';
import useImage from '../../../../../core/Context/useImage';
import { alternativeLabelContent } from './IframeLabelAlternative';
import { alternativeLabelContent } from './FieldLabelAlternative';

export default function ExpirationDate(props: ExpirationDateProps) {
const {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { InstallmentsItem, InstallmentsProps } from '../types';
import Fieldset from '../../../../../internal/FormFields/Fieldset/Fieldset';
import RadioGroup from '../../../../../internal/FormFields/RadioGroup';
import Select from '../../../../../internal/FormFields/Select';
import { alternativeLabelContent } from '../IframeLabelAlternative';
import { alternativeLabelContent } from '../FieldLabelAlternative';
import './Installments.scss';

export interface InstallmentsObj {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { useCoreContext } from '../../../../../core/Context/CoreProvider';
import { KCPProps } from './types';
import DataSfSpan from './DataSfSpan';
import InputTelephone from '../../../../internal/FormFields/InputTelephone';
import { alternativeLabelContent } from './IframeLabelAlternative';
import { alternativeLabelContent } from './FieldLabelAlternative';
import { CREDITCARD_TAX_NUMBER_INVALID } from '../../../../../core/Errors/constants';

export default function KCPAuthentication(props: KCPProps) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import classNames from 'classnames';
import Field from '../../internal/FormFields/Field';
import { h } from 'preact';
import { GiftcardFieldProps } from './types';
import { alternativeLabelContent } from '../../Card/components/CardInput/components/IframeLabelAlternative';
import { alternativeLabelContent } from '../../Card/components/CardInput/components/FieldLabelAlternative';

export const GiftcardNumberField = ({ i18n, classNameModifiers, sfpState, getCardErrorMessage, focusedElement, setFocusOn }: GiftcardFieldProps) => {
return (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import classNames from 'classnames';
import Field from '../../internal/FormFields/Field';
import { h } from 'preact';
import { GiftcardFieldProps } from './types';
import { alternativeLabelContent } from '../../Card/components/CardInput/components/IframeLabelAlternative';
import { alternativeLabelContent } from '../../Card/components/CardInput/components/FieldLabelAlternative';

export const GiftcardPinField = ({
i18n,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import classNames from 'classnames';
import Field from '../../internal/FormFields/Field';
import { h } from 'preact';
import { GiftcardFieldProps } from '../../Giftcard/components/types';
import { alternativeLabelContent } from '../../Card/components/CardInput/components/IframeLabelAlternative';
import { alternativeLabelContent } from '../../Card/components/CardInput/components/FieldLabelAlternative';

export const MealVoucherExpiryField = ({ i18n, sfpState, focusedElement, setFocusOn }: GiftcardFieldProps) => {
return (
Expand Down

0 comments on commit a5217e8

Please sign in to comment.