Initial commit
This commit is contained in:
commit
2f5e10140c
133 changed files with 10429 additions and 0 deletions
8
packages/web/src/components/modals/utils.ts
Normal file
8
packages/web/src/components/modals/utils.ts
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
export function reduceDisplay(display: string) {
|
||||
const words = display.split(" ");
|
||||
if (words.length === 1) {
|
||||
return display.slice(0, 2).toUpperCase();
|
||||
} else {
|
||||
return words[0].charAt(0).toUpperCase() + words[1].charAt(0).toUpperCase();
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue