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.jsfile now owns a new feature:withHeaderItem. πWe switched how
RiPulseFillis being imported fromreact-icons/ri, making it a more streamlined process.The
ModeSwitcherfeature has also been included in theUserDropdown.jsfile 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
apiClientStatusToggleunderwent a name change toapiClientStatusToggle- now the name better represents what the function does!A new functionality,
apiClientLogOuthas been added to make our application more secure and user-friendly.
Importing Essentials in ApiService.js π
Two important modules,
axiosandappConfigare now part ofApiService.jsfile - enhancing the way it functions.A new constant
unauthorizedCodehas also been defined within this file to help with handling specific scenarios.
SuperAdmin/index.js File Modifications π οΈ
There is a change in how
Buttonis being imported fromcomponents/ui- minor tweaks making a significant difference!To amplify the user experience,
toastandNotificationfeatures 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
apiClientLogOutfor enhanced security and ease of user interactions.A new filter has been added into the
getAdminfunction within theSettingscomponent 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?