fix: update menu item link for account and profile (#119)

This commit is contained in:
Nathan Sprenkle
2023-03-07 17:48:34 -05:00
committed by GitHub
parent 3c7be4c65c
commit 19d7aa3e33
7 changed files with 21 additions and 6 deletions

View File

@@ -3,6 +3,8 @@ import { configuration } from 'config';
const baseUrl = `${configuration.LMS_BASE_URL}`;
export const ecommerceUrl = `${configuration.ECOMMERCE_PUBLIC_URL_ROOT}`;
export const accountUrl = `${configuration.ACCOUNT_MICROFRONTEND_URL}`;
export const profileUrl = (username) => `${configuration.PROFILE_MICROFRONTEND_URL}${username}`;
export const api = `${baseUrl}/api`;
@@ -27,6 +29,7 @@ export const creditPurchaseUrl = (courseId) => `${ecommerceUrl}/credit/checkout/
export const creditRequestUrl = (providerId) => `${api}/credit/v1/providers/${providerId}/request`;
export default StrictDict({
accountUrl,
api,
baseAppUrl,
courseUnenroll,
@@ -36,6 +39,7 @@ export default StrictDict({
event,
init,
learningMfeUrl,
profileUrl,
programsUrl,
updateEmailSettings,
});