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 from react-icons/ri, making it a more streamlined process.

  • The ModeSwitcher feature has also been included in the UserDropdown.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 to apiClientStatusToggle - 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 and appConfig are now part of ApiService.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 from components/ui - minor tweaks making a significant difference!

  • To amplify the user experience, toast and Notification features are now imported from components/ui.

  • We have an important function in here, apiClientStatusToggle, that also underwent a name change to apiClientStatusToggle.

  • 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 the Settings 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