Add ToastProvider component and useToast hook; update CabinetMaintenance for toast notifications; enhance Button styles and Tailwind CSS configuration

This commit is contained in:
2024-12-21 20:34:16 +05:30
parent 835a3cc7fd
commit 96784c02c7
7 changed files with 120 additions and 19 deletions

View File

@@ -7,4 +7,8 @@ const getUserInfoFromSession = () => {
}
}
export { getUserInfoFromSession };
const toTitleCase = (str) => {
return str.replace(/\w\S*/g, function(txt){return txt.charAt(0).toUpperCase() + txt.substr(1).toLowerCase();});
}
export { getUserInfoFromSession, toTitleCase };