refactor: resolved eslint issues after merge with master

This commit is contained in:
Bilal Qamar
2022-08-24 17:06:13 +05:00
parent b849006b34
commit 4e2577191d
2 changed files with 8 additions and 23 deletions

View File

@@ -94,12 +94,6 @@ function BulkEmailContentHistory({ intl }) {
},
];
const getCell = (tableData, row) => (
<Button variant="link" className="px-1" onClick={() => onViewMessageClick(tableData[row.index])}>
{intl.formatMessage(messages.buttonViewMessage)}
</Button>
);
/**
* Paragon's DataTable supports the ability to add extra columns that might not directly coincide with the data being
* represented in the table. We are using an additional column to embed a button that will open a Modal to display the
@@ -112,6 +106,7 @@ function BulkEmailContentHistory({ intl }) {
{
id: 'view_message',
Header: '',
// eslint-disable-next-line react/no-unstable-nested-components
Cell: ({ row }) => (
<Button variant="link" className="px-1" onClick={() => onViewMessageClick(tableData[row.index])}>
{intl.formatMessage(messages.buttonViewMessage)}

View File

@@ -15,28 +15,18 @@ export default function BulkEmailPendingTasksAlert() {
<Hyperlink
destination={`${getConfig().LMS_BASE_URL}/courses/${window.location.pathname.split('/')[2]}/instructor#view-course-info`}
target="_blank"
isInline
showLaunchIcon={false}
>
<FormattedMessage
id="bulk.email.pending.tasks.link"
defaultMessage="Course Info"
/>
<Hyperlink
destination={`${getConfig().LMS_BASE_URL}/courses/${window.location.pathname.split('/')[2]}/instructor#view-course-info`}
target="_blank"
isInline
showLaunchIcon={false}
>
<FormattedMessage
id="bulk.email.pending.tasks.link"
defaultMessage="Course Info"
/>
</Hyperlink>
<FormattedMessage
id="bulk.email.pending.tasks.description.two"
defaultMessage="&nbsp;in the Instructor Dashboard."
/>
</Alert>
</>
</Hyperlink>
<FormattedMessage
id="bulk.email.pending.tasks.description.two"
defaultMessage="&nbsp;in the Instructor Dashboard."
/>
</Alert>
);
}