mirror of
https://github.com/roleypoly/roleypoly.git
synced 2025-06-17 01:59:08 +00:00
feat(design-system): port most of ui atoms to bazel monorepo and new storybook
This commit is contained in:
parent
a5e2fdc7a7
commit
72ea639c5d
108 changed files with 13650 additions and 53 deletions
7
src/design-system/atoms/avatar/avatarUtils.tsx
Normal file
7
src/design-system/atoms/avatar/avatarUtils.tsx
Normal file
|
@ -0,0 +1,7 @@
|
|||
export const initialsFromName = (name: string) =>
|
||||
name
|
||||
.split(' ')
|
||||
.slice(0, 2)
|
||||
.map((x) => x[0])
|
||||
.join('')
|
||||
.toUpperCase();
|
Loading…
Add table
Add a link
Reference in a new issue