From 93d1cc13005b68277c0845486b8cf9c2f8c4de82 Mon Sep 17 00:00:00 2001 From: Leo Kewitz Date: Wed, 15 May 2024 10:33:57 +0200 Subject: [PATCH] refact: add default vendor logo --- src/server/controllers/logo.js | 3 +++ src/static/images/vendor.svg | 12 ++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 src/static/images/vendor.svg diff --git a/src/server/controllers/logo.js b/src/server/controllers/logo.js index 042bcdc4..147a9b9b 100644 --- a/src/server/controllers/logo.js +++ b/src/server/controllers/logo.js @@ -70,6 +70,9 @@ const getCollectiveImageUrl = async (collectiveSlug, { height, hash } = {}) => { return '/images/default-organization-logo.png'; } } + if (collective.type === 'VENDOR') { + return '/images/vendor.svg'; + } if (['COLLECTIVE', 'FUND', 'EVENT', 'PROJECT'].includes(collective.type)) { return getDefaultAvatar(collective); diff --git a/src/static/images/vendor.svg b/src/static/images/vendor.svg new file mode 100644 index 00000000..36331dda --- /dev/null +++ b/src/static/images/vendor.svg @@ -0,0 +1,12 @@ + + + + + + + + + + + \ No newline at end of file