fix(dark-mode): fixed UnP email templates icons

This commit is contained in:
vincentbpro 2022-02-28 10:54:51 +01:00
parent 173ebbb950
commit bca5adcd3d

View File

@ -5,6 +5,7 @@ import { Table, Thead, Tbody, Tr, Td, Th } from '@strapi/design-system/Table';
import { VisuallyHidden } from '@strapi/design-system/VisuallyHidden';
import { Typography } from '@strapi/design-system/Typography';
import { IconButton } from '@strapi/design-system/IconButton';
import { Icon } from '@strapi/design-system/Icon';
import Pencil from '@strapi/icons/Pencil';
import Reload from '@strapi/icons/Refresh';
import { onRowClick, stopPropagation } from '@strapi/helper-plugin';
@ -47,12 +48,14 @@ const EmailTable = ({ canUpdate, onEditClick }) => {
<Tbody>
<Tr {...onRowClick({ fn: () => onEditClick('reset_password') })}>
<Td>
<Reload
aria-label={formatMessage({
id: getTrad('Email.template.reset_password'),
defaultMessage: 'Reset password',
})}
/>
<Icon>
<Reload
aria-label={formatMessage({
id: getTrad('Email.template.reset_password'),
defaultMessage: 'Reset password',
})}
/>
</Icon>
</Td>
<Td>
<Typography>
@ -76,12 +79,14 @@ const EmailTable = ({ canUpdate, onEditClick }) => {
</Tr>
<Tr {...onRowClick({ fn: () => onEditClick('email_confirmation') })}>
<Td>
<Check
aria-label={formatMessage({
id: getTrad('Email.template.email_confirmation'),
defaultMessage: 'Email address confirmation',
})}
/>
<Icon>
<Check
aria-label={formatMessage({
id: getTrad('Email.template.email_confirmation'),
defaultMessage: 'Email address confirmation',
})}
/>
</Icon>
</Td>
<Td>
<Typography>