Skip to content

Commit 20649f0

Browse files
authored
Merge pull request #107 from bitmakerla/chris/order_history_in_user_menu
feat: Order history item added in user menu
2 parents d4bf756 + f2632fb commit 20649f0

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

README.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ Environment Variables
2525
* ``SITE_NAME`` - The user-facing name of the site, used as `alt` text on the logo in the header.
2626
Defaults to "localhost" in development.
2727
* ``LOGO_URL`` - The URL of the site's logo. This logo is displayed in the header.
28+
* ``ORDER_HISTORY_URL`` - The URL of the order history page.
2829
* ``AUTHN_MINIMAL_HEADER`` - A boolean flag which hides the main menu, user menu, and logged-out
2930
menu items when truthy. This is intended to be used in micro-frontends like
3031
frontend-app-authentication in which these menus are considered distractions from the user's task.

src/Header.jsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ ensureConfig([
2121
'LOGIN_URL',
2222
'SITE_NAME',
2323
'LOGO_URL',
24+
'ORDER_HISTORY_URL',
2425
], 'Header component');
2526

2627
subscribe(APP_CONFIG_INITIALIZED, () => {
@@ -56,6 +57,11 @@ function Header({ intl }) {
5657
href: `${config.LMS_BASE_URL}/account/settings`,
5758
content: intl.formatMessage(messages['header.user.menu.account.settings']),
5859
},
60+
{
61+
type: 'item',
62+
href: config.ORDER_HISTORY_URL,
63+
content: intl.formatMessage(messages['header.user.menu.order.history']),
64+
},
5965
{
6066
type: 'item',
6167
href: config.LOGOUT_URL,

0 commit comments

Comments
 (0)