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 { }: FormTokenFieldProps): JSX.Element {
return ( return (
<WpFormTokenField <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} label={label}
value={value.map((item) => item.name)} value={value.map((item) => item.name)}
suggestions={suggestions.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')} /> <PlainBodyTitle title={__('Trigger settings', 'mailpoet')} />
<SettingsInfoText /> <SettingsInfoText />
<FormTokenField <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')} label={__('When WordPress user role is:', 'mailpoet')}
value={selected} value={selected}
suggestions={userRoles} suggestions={userRoles}