Add ToastProvider component and useToast hook; update CabinetMaintenance for toast notifications; enhance Button styles and Tailwind CSS configuration
This commit is contained in:
@@ -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 };
|
||||
Reference in New Issue
Block a user