Skip to content

Commit

Permalink
refact: add default vendor logo
Browse files Browse the repository at this point in the history
  • Loading branch information
kewitz committed May 15, 2024
1 parent 6f49459 commit 9f4564a
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/server/controllers/logo.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
12 changes: 12 additions & 0 deletions src/static/images/vendor.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 9f4564a

Please sign in to comment.