From 031a566db5381b2df1da47a3ac561a4ead88f9ef Mon Sep 17 00:00:00 2001 From: mashal-m Date: Fri, 1 Dec 2023 14:48:00 +0500 Subject: [PATCH] feat: add accounnt and profile urls in env files and replace legacy url --- .env | 2 ++ .env.development | 2 ++ .env.test | 2 ++ .../ProgramCertificatesList/ProgramCertificatesList.jsx | 2 +- src/components/ProgramRecordsList/ProgramRecordsList.jsx | 2 +- 5 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.env b/.env index 1d032bd..8e170f5 100644 --- a/.env +++ b/.env @@ -4,6 +4,8 @@ BASE_URL='' CREDENTIALS_BASE_URL='' CSRF_TOKEN_API_PATH='' ECOMMERCE_BASE_URL='' +ACCOUNT_SETTINGS_URL='' +ACCOUNT_PROFILE_URL='' LANGUAGE_PREFERENCE_COOKIE_NAME='' LMS_BASE_URL='' LOGIN_URL='' diff --git a/.env.development b/.env.development index 2524bd6..78f19bd 100644 --- a/.env.development +++ b/.env.development @@ -8,6 +8,8 @@ ECOMMERCE_BASE_URL='http://localhost:18130' LANGUAGE_PREFERENCE_COOKIE_NAME='openedx-language-preference' LMS_BASE_URL='http://localhost:18000' LOGIN_URL='http://localhost:18000/login' +ACCOUNT_PROFILE_URL='http://localhost:1995' +ACCOUNT_SETTINGS_URL='http://localhost:1997' LOGOUT_URL='http://localhost:18000/logout' LOGO_URL=https://edx-cdn.org/v3/default/logo.svg LOGO_TRADEMARK_URL=https://edx-cdn.org/v3/default/logo-trademark.svg diff --git a/.env.test b/.env.test index ca93061..6305c12 100644 --- a/.env.test +++ b/.env.test @@ -7,6 +7,8 @@ LANGUAGE_PREFERENCE_COOKIE_NAME='openedx-language-preference' LMS_BASE_URL='http://localhost:18000' LOGIN_URL='http://localhost:18000/login' LOGOUT_URL='http://localhost:18000/logout' +ACCOUNT_PROFILE_URL=http://localhost:1995 +ACCOUNT_SETTINGS_URL=http://localhost:1997 LOGO_URL=https://edx-cdn.org/v3/default/logo.svg LOGO_TRADEMARK_URL=https://edx-cdn.org/v3/default/logo-trademark.svg LOGO_WHITE_URL=https://edx-cdn.org/v3/default/logo-white.svg diff --git a/src/components/ProgramCertificatesList/ProgramCertificatesList.jsx b/src/components/ProgramCertificatesList/ProgramCertificatesList.jsx index 86fba92..ef2e653 100644 --- a/src/components/ProgramCertificatesList/ProgramCertificatesList.jsx +++ b/src/components/ProgramCertificatesList/ProgramCertificatesList.jsx @@ -86,7 +86,7 @@ function ProgramCertificatesList({ intl }) { const { username } = getAuthenticatedUser(); return ( diff --git a/src/components/ProgramRecordsList/ProgramRecordsList.jsx b/src/components/ProgramRecordsList/ProgramRecordsList.jsx index 53ee9d3..b9af8fc 100644 --- a/src/components/ProgramRecordsList/ProgramRecordsList.jsx +++ b/src/components/ProgramRecordsList/ProgramRecordsList.jsx @@ -45,7 +45,7 @@ function ProgramRecordsList() { const { username } = getAuthenticatedUser(); return (