Skip to content

Commit

Permalink
fix: remove unused programs tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
dcoa committed Aug 22, 2024
1 parent eadf431 commit c260ced
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 38 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,6 @@ export const CollapseMenuBody = ({ isOpen }) => {
<Button as="a" href="/" variant="inverse-primary">
{formatMessage(messages.course)}
</Button>
<Button as="a" href={urls.programsUrl()} variant="inverse-primary">
{formatMessage(messages.program)}
</Button>
<Button
as="a"
href={urls.baseAppUrl(courseSearchUrl)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,6 @@ exports[`CollapseMenuBody render 1`] = `
>
Courses
</Button>
<Button
as="a"
href="http://localhost:18000/dashboard/programs"
variant="inverse-primary"
>
Programs
</Button>
<Button
as="a"
href="http://localhost:18000/courseSearchUrl"
Expand Down Expand Up @@ -79,13 +72,6 @@ exports[`CollapseMenuBody render unauthenticated 1`] = `
>
Courses
</Button>
<Button
as="a"
href="http://localhost:18000/dashboard/programs"
variant="inverse-primary"
>
Programs
</Button>
<Button
as="a"
href="http://localhost:18000/courseSearchUrl"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,6 @@ exports[`ExpandedHeader render 1`] = `
>
Courses
</Button>
<Button
as="a"
className="p-4"
href="programsUrl"
variant="inverse-primary"
>
Programs
</Button>
<Button
as="a"
className="p-4"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,6 @@ export const ExpandedHeader = () => {
>
{formatMessage(messages.course)}
</Button>
<Button
as="a"
href={urls.programsUrl()}
variant="inverse-primary"
className="p-4"
>
{formatMessage(messages.program)}
</Button>
<Button
as="a"
href={urls.baseAppUrl(courseSearchUrl)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import ExpandedHeader from '.';
import { useIsCollapsed } from '../hooks';

jest.mock('data/services/lms/urls', () => ({
programsUrl: () => 'programsUrl',
baseAppUrl: url => (`http://localhost:18000${url}`),
}));

Expand Down
4 changes: 0 additions & 4 deletions src/data/services/lms/urls.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@ export const updateUrl = (base, url) => ((url == null || url.startsWith('http://
export const baseAppUrl = (url) => updateUrl(getBaseUrl(), url);
export const learningMfeUrl = (url) => updateUrl(getConfig().LEARNING_BASE_URL, url);

// static view url
const programsUrl = () => baseAppUrl('/dashboard/programs');

export const creditPurchaseUrl = (courseId) => `${getEcommerceUrl()}/credit/checkout/${courseId}/`;
export const creditRequestUrl = (providerId) => `${getApiUrl()}/credit/v1/providers/${providerId}/request/`;

Expand All @@ -37,6 +34,5 @@ export default StrictDict({
event,
getInitApiUrl,
learningMfeUrl,
programsUrl,
updateEmailSettings,
});

0 comments on commit c260ced

Please sign in to comment.