Skip to content

Commit

Permalink
NCRS-3363: reverted state
Browse files Browse the repository at this point in the history
  • Loading branch information
alice-bell committed Dec 18, 2024
1 parent 1919bca commit ebfdeae
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 13 deletions.
Binary file modified .yarn/install-state.gz
Binary file not shown.
24 changes: 11 additions & 13 deletions src/components/masked-input/MaskedInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,9 @@ import { InputWidth } from 'nhsuk-react-components/dist/esm/util/types/NHSUKType

import FormGroup from './LocalFormGroup';

// import InputMask, { ReactInputMask } from 'react-input-mask';
import { ReactInputMask } from 'react-input-mask';
import InputMask, { ReactInputMask } from 'react-input-mask';

// import classNames from 'classnames';
import classNames from 'classnames';

type InputMaskRef =
| string
Expand All @@ -31,16 +30,15 @@ FormElementProps & {
const MaskedInput: React.FC<MaskedInputProps> = props => (
<FormGroup<MaskedInputProps> inputType="input" {...props}>
{({ className, width, error, ref, ...rest }:any) => (
<div>{...rest}</div>
// <InputMask
// className={classNames(
// 'nhsuk-input',
// { [`nhsuk-input--width-${width}`]: width },
// { 'nhsuk-input--error': error },
// className,
// )}
// {...rest}
// />
<InputMask
className={classNames(
'nhsuk-input',
{ [`nhsuk-input--width-${width}`]: width },
{ 'nhsuk-input--error': error },
className,
)}
{...rest}
/>
)}
</FormGroup>
);
Expand Down

0 comments on commit ebfdeae

Please sign in to comment.