From e9c00868598b21c44435975ce2bfcea79fa4435a Mon Sep 17 00:00:00 2001 From: Ferdinand Thiessen Date: Sun, 5 Dec 2021 23:35:32 +0100 Subject: [PATCH] feat(api): Add component for displaying an users avatar with fallback image --- api/components/UserAvatar.vue | 46 +++++++++++++++++++++++++++++++++++ api/components/index.ts | 3 ++- 2 files changed, 48 insertions(+), 1 deletion(-) create mode 100644 api/components/UserAvatar.vue diff --git a/api/components/UserAvatar.vue b/api/components/UserAvatar.vue new file mode 100644 index 0000000..05eb2bf --- /dev/null +++ b/api/components/UserAvatar.vue @@ -0,0 +1,46 @@ + + + \ No newline at end of file diff --git a/api/components/index.ts b/api/components/index.ts index caaa21f..fd51e58 100644 --- a/api/components/index.ts +++ b/api/components/index.ts @@ -1,4 +1,5 @@ import IsoDateInput from './IsoDateInput.vue'; import PasswordInput from './PasswordInput.vue'; +import UserAvatar from './UserAvatar.vue'; -export { IsoDateInput, PasswordInput }; +export { IsoDateInput, PasswordInput, UserAvatar };