Skip to content

Commit

Permalink
refactor: code refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
PKulkoRaccoonGang committed Feb 27, 2024
1 parent a6b4c25 commit 6f9f90c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/course-unit/course-sequence/CourseSequence.scss
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
min-width: 0;
}

.sequence-navigation-tabs .btn:not(.sequence-navigation-tabs-new-unit-btn) {
.sequence-navigation-tabs .btn:not(.sequence-navigation-tabs-action-btn) {
flex-basis: 100%;
min-width: 2rem;
}
Expand Down Expand Up @@ -63,7 +63,7 @@

.sequence-navigation-prev-btn,
.sequence-navigation-next-btn,
.sequence-navigation-tabs-new-unit-btn {
.sequence-navigation-tabs-action-btn {
min-width: 12.5rem;
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { useDispatch, useSelector } from 'react-redux';
import PropTypes from 'prop-types';
import { Button, Dropdown } from '@edx/paragon';
import { Plus as PlusIcon } from '@edx/paragon/icons';
import { Button } from '@edx/paragon';
import { Plus as PlusIcon, ContentPasteGo as ContentPasteGoIcon } from '@edx/paragon/icons';
import { useIntl } from '@edx/frontend-platform/i18n';
import { useNavigate } from 'react-router-dom';

Expand Down Expand Up @@ -59,7 +59,7 @@ const SequenceNavigationTabs = ({
/>
))}
<Button
className="sequence-navigation-tabs-new-unit-btn"
className="sequence-navigation-tabs-action-btn"
variant="outline-primary"
iconBefore={PlusIcon}
onClick={handleAddNewSequenceUnit}
Expand All @@ -68,8 +68,9 @@ const SequenceNavigationTabs = ({
</Button>
{showPasteUnit && (
<Button
className="sequence-navigation-tabs-action-btn"
variant="outline-primary"
iconBefore={PlusIcon}
iconBefore={ContentPasteGoIcon}
onClick={handlePasteNewSequenceUnit}
>
{intl.formatMessage(messages.pasteAsNewUnitLink)}
Expand Down

0 comments on commit 6f9f90c

Please sign in to comment.