Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: update button text #123

Merged
merged 1 commit into from
Oct 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/features/Courses/CoursesDetailPage/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ const CoursesDetailPage = () => {
className="text-decoration-none button-course-details mr-3"
>
<i className="fa-solid fa-arrow-up-right-from-square mr-2 mb-1" />
Course details
Course content
</Button>
<Button onClick={openModal}>
Add Class
Expand Down
2 changes: 1 addition & 1 deletion src/features/Courses/CoursesTable/_test_/columns.test.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ describe('columns', () => {

const button = component.getByTestId('droprown-action');
fireEvent.click(button);
expect(component.getByText('Course Details')).toBeInTheDocument();
expect(component.getByText('Course content')).toBeInTheDocument();
expect(component.getByText('Add Class')).toBeInTheDocument();
});
});
2 changes: 1 addition & 1 deletion src/features/Courses/CoursesTable/columns.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ const columns = [
<Dropdown.Menu>
<Dropdown.Item href={courseDetailsLink} target="_blank" rel="noopener noreferrer">
<i className="fa-solid fa-arrow-up-right-from-square mr-2 mb-1" />
Course Details
Course content
</Dropdown.Item>
<Dropdown.Item onClick={openModal}>
<i className="fa-solid fa-plus mr-2 mb-1" />
Expand Down
Loading