Skip to content

Commit

Permalink
chore: fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
navinkarkera committed Dec 9, 2024
1 parent 3501291 commit 5516285
Showing 1 changed file with 11 additions and 14 deletions.
25 changes: 11 additions & 14 deletions src/library-authoring/components/ComponentDeleter.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
import React, { useCallback, useContext } from 'react';
import { FormattedMessage, useIntl } from '@edx/frontend-platform/i18n';
import {
ActionRow,
AlertModal,
Button,
} from '@openedx/paragon';
import { Warning } from '@openedx/paragon/icons';

import { useLibraryContext } from '../common/context';
Expand Down Expand Up @@ -46,7 +41,7 @@ const ComponentDeleter = ({ usageKey, ...props }: Props) => {
const restoreComponentMutation = useRestoreLibraryBlock();
const restoreComponent = useCallback(async () => {
try {
await restoreComponentMutation.mutateAsync({ usageKey })
await restoreComponentMutation.mutateAsync({ usageKey });
showToast(intl.formatMessage(messages.undoDeleteComponentToastSuccess));
} catch (e) {
showToast(intl.formatMessage(messages.undoDeleteComponentToastFailed));
Expand Down Expand Up @@ -81,14 +76,16 @@ const ComponentDeleter = ({ usageKey, ...props }: Props) => {
variant="warning"
title={intl.formatMessage(messages.deleteComponentWarningTitle)}
icon={Warning}
description={<FormattedMessage
{...messages.deleteComponentConfirm}
values={{
componentName: (
<strong><BlockName usageKey={usageKey} /></strong>
),
}}
/>}
description={(
<FormattedMessage
{...messages.deleteComponentConfirm}
values={{
componentName: (
<strong><BlockName usageKey={usageKey} /></strong>
),
}}
/>
)}
onDeleteSubmit={doDelete}
/>
);
Expand Down

0 comments on commit 5516285

Please sign in to comment.