Files
osaka/src/util/util.js

14 lines
390 B
JavaScript

const getUserInfoFromSession = () => {
return {
username: "Rajesh Kumar",
pacsName: "Demo SKUS Ltd.",
userType: "pacsTeller",
moduleName: "locker",
}
}
const toTitleCase = (str) => {
return str.replace(/\w\S*/g, function(txt){return txt.charAt(0).toUpperCase() + txt.substr(1).toLowerCase();});
}
export { getUserInfoFromSession, toTitleCase };