Remove no longer needed hotfixes

[MAILPOET-5138]
This commit is contained in:
Jan Jakes
2023-03-22 13:23:34 +01:00
committed by John Oleksowicz
parent d7ccd75744
commit 403ea6022e
2 changed files with 0 additions and 6 deletions

View File

@@ -26,9 +26,6 @@ export function FormTokenField({
}: FormTokenFieldProps): JSX.Element {
return (
<WpFormTokenField
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
// The following error seems to be a mismatch. It claims the 'label' prop does not exist, but it does.
label={label}
value={value.map((item) => item.name)}
suggestions={suggestions.map((item) => item.name)}

View File

@@ -48,9 +48,6 @@ export function RolePanel(): JSX.Element {
<PlainBodyTitle title={__('Trigger settings', 'mailpoet')} />
<SettingsInfoText />
<FormTokenField
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
// The following error seems to be a mismatch. It claims the 'label' prop does not exist, but it does.
label={__('When WordPress user role is:', 'mailpoet')}
value={selected}
suggestions={userRoles}