215 templates list skeleton (#251)

* adding package-lock.json

* deleted unsured file

* Removes and unused file

* Fixes errant styling change

* Fixes an error and uses a prop that PF recognizes

* Updates PR to use API Modules

*  Fixes PR Issues

* Addes tests to Templates

* Addresses PR Issues

* Revert package-lock.json
This commit is contained in:
Alex Corey
2019-06-13 11:08:05 -04:00
committed by GitHub
parent ffcb655038
commit 19b41743de
13 changed files with 449 additions and 52 deletions

View File

@@ -14,3 +14,10 @@ export function getArticle (str) {
export function ucFirst (str) {
return `${str[0].toUpperCase()}${str.substr(1)}`;
}
export const toTitleCase = (type) => type
.toLowerCase()
.split('_')
.map(word => word.charAt(0).toUpperCase() + word.slice(1))
.join(' ');