From 2a60d25322014fc574516eb8c52e128e7c0bf72f Mon Sep 17 00:00:00 2001 From: Luki Centuri Date: Mon, 14 Aug 2023 22:47:04 +0700 Subject: [PATCH] feat(Logo): adds support for custom src (#2) --- src/components/logos/Logo.stories.ts | 7 +++++++ src/components/logos/Logo.vue | 10 ++++++++-- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/src/components/logos/Logo.stories.ts b/src/components/logos/Logo.stories.ts index e6c7e62..2db4a31 100644 --- a/src/components/logos/Logo.stories.ts +++ b/src/components/logos/Logo.stories.ts @@ -31,4 +31,11 @@ export const WithText: Story = { }, }; +export const WithCustomSrc: Story = { + args: { + customSrc: + 'https://raw.githubusercontent.com/rotki/data/hohoho/assets/icons/drawer_logo.png', + }, +}; + export default meta; diff --git a/src/components/logos/Logo.vue b/src/components/logos/Logo.vue index 90832cd..2c9d7a7 100644 --- a/src/components/logos/Logo.vue +++ b/src/components/logos/Logo.vue @@ -1,6 +1,9 @@