Jul 12th Upgrades on User drop down and new functions in accounts services.
Wow! There has been some fantastic effort put into this PR to make various adjustments to improve the code. Here are more concrete details of what changed:
UserDropdown.js File Upgrades 💻
Our
UserDropdown.js
file now owns a new feature:withHeaderItem
. 🎉We switched how
RiPulseFill
is being imported fromreact-icons/ri
, making it a more streamlined process.The
ModeSwitcher
feature has also been included in theUserDropdown.js
file to provide additional capabilities.And the cherry on the top, minor code clean-ups were done here, removing unused imports, making it lighter and cleaner.
AccountServices.js A New Function and Name Change 🔄
A function named
apiClientStatusToggle
underwent a name change toapiClientStatusToggle
- now the name better represents what the function does!A new functionality,
apiClientLogOut
has been added to make our application more secure and user-friendly.
Importing Essentials in ApiService.js 🚀
Two important modules,
axios
andappConfig
are now part ofApiService.js
file - enhancing the way it functions.A new constant
unauthorizedCode
has also been defined within this file to help with handling specific scenarios.
SuperAdmin/index.js File Modifications 🛠️
There is a change in how
Button
is being imported fromcomponents/ui
- minor tweaks making a significant difference!To amplify the user experience,
toast
andNotification
features are now imported fromcomponents/ui
.We have an important function in here,
apiClientStatusToggle
, that also underwent a name change toapiClientStatusToggle
.This file also provides a new function
apiClientLogOut
for enhanced security and ease of user interactions.A new filter has been added into the
getAdmin
function within theSettings
component for improved functionality.
The tremendous work that went into this PR is commendable! These changes will make our application more efficient and user-friendly. Bravo, team! 🎉 😃
Last updated
Was this helpful?