From 3378d1c3438a23d7700ce061cf36cca41d1ea87f Mon Sep 17 00:00:00 2001 From: Muhammad Faraz Maqsood Date: Mon, 3 Jun 2024 19:13:38 +0500 Subject: [PATCH] feat!: hide profile and account button --- .../AuthenticatedUserDropdown.jsx | 22 +++++++++++-------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/src/learning-header/AuthenticatedUserDropdown.jsx b/src/learning-header/AuthenticatedUserDropdown.jsx index 0ef9fde7b..522c43d72 100644 --- a/src/learning-header/AuthenticatedUserDropdown.jsx +++ b/src/learning-header/AuthenticatedUserDropdown.jsx @@ -39,15 +39,19 @@ const AuthenticatedUserDropdown = ({ intl, username, userProfileImage }) => { {dashboardMenuItem} - - - {intl.formatMessage(messages.profile)} - - - - {intl.formatMessage(messages.account)} - - { getConfig().ORDER_HISTORY_URL && ( + {getConfig().ENABLE_PROFILE_BUTTON && ( + + + {intl.formatMessage(messages.profile)} + + )} + {getConfig().ENABLE_ACCOUNT_BUTTON && ( + + + {intl.formatMessage(messages.account)} + + )} + {getConfig().ORDER_HISTORY_URL && ( {intl.formatMessage(messages.orderHistory)}