Skip to content

Conversation

@dmitry-mf
Copy link
Owner

No description provided.

<FastField name={formField.name} >
{({ field, meta }: FieldProps) => <FormInput title={formField.title} field={field} meta={meta} />}
<FastField name={formField.name} key={formField.title}>
{({ field, meta }: FieldProps) => <FormInput key={formField.title} title={formField.title} field={field} meta={meta} />}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do you need key on this element?

<ModalFooterContainer>
<Button type={'reset'} onClick={onDecline} classNames={declineBtnCn}>
<span className={declineBtnContentCn}>{declineContent}</span>
<span data-testid={'decline-btn'} className={declineBtnContentCn}>{declineContent}</span>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's better:

data-testid="decline-btn"

</Button>
<Button type={'submit'} onClick={onConfirm} classNames={confirmBtnCn}>
<span className={confirmBtnContentCn}>{confirmContent}</span>
<span data-testid={'confirm-btn'} className={confirmBtnContentCn}>{confirmContent}</span>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

data-testid="confirm-btn"


return (
<div onClick={onClick} className={defaultClassNames} >
<div data-testid={'close'} onClick={onClick} className={defaultClassNames} >

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

data-testid="close"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants