diff --git a/components/Avatar.tsx b/components/Avatar.tsx index bd697bca1c1..93acd372193 100644 --- a/components/Avatar.tsx +++ b/components/Avatar.tsx @@ -1,7 +1,7 @@ import React from 'react'; import PropTypes from 'prop-types'; import { themeGet } from '@styled-system/theme-get'; -import { Calendar, Store, TestTube2 } from 'lucide-react'; +import { Calendar, TestTube2 } from 'lucide-react'; import styled from 'styled-components'; import { border, BorderProps, color, layout, space } from 'styled-system'; @@ -84,14 +84,6 @@ const Avatar = ({ src = defaultImage.ANONYMOUS; } else if (collective.isGuest && shouldUseDefaultGuestAvatar(collective.name)) { src = defaultImage.GUEST; - } else if (type === 'VENDOR' && collective.hasImage !== true) { - const iconSize = 2 * Math.round((radius * 0.6) / 2); - const padding = (radius - iconSize) / 2; - child = ( -
- -
- ); } else if (useIcon) { const Icon = COLLECTIVE_TYPE_ICON[type]; if (Icon) { @@ -159,15 +151,6 @@ export const ContributorAvatar = ({ contributor, radius, ...styleProps }) => { image = defaultImage.ANONYMOUS; } else if (contributor.isGuest && shouldUseDefaultGuestAvatar(contributor.name)) { image = defaultImage.GUEST; - } else if (contributor.type === 'VENDOR') { - image = undefined; - const iconSize = 2 * Math.round((radius * 0.6) / 2); - const padding = (radius - iconSize) / 2; - styleProps.children = ( -
- -
- ); } else { image = getCollectiveImage({ slug: contributor.collectiveSlug, imageUrl: contributor.image }); } diff --git a/components/ContributionConfirmationModal.tsx b/components/ContributionConfirmationModal.tsx index cc115135cdd..3cb7d667cb2 100644 --- a/components/ContributionConfirmationModal.tsx +++ b/components/ContributionConfirmationModal.tsx @@ -46,7 +46,6 @@ export const confirmContributionFieldsFragment = gql` name type imageUrl - hasImage isIncognito ... on Individual { isGuest @@ -58,7 +57,6 @@ export const confirmContributionFieldsFragment = gql` name type imageUrl - hasImage ... on AccountWithHost { bankTransfersHostFeePercent: hostFeePercent(paymentMethodType: MANUAL) host { diff --git a/components/expenses/graphql/fragments.ts b/components/expenses/graphql/fragments.ts index cf7ed2a7371..f35a12e6ccb 100644 --- a/components/expenses/graphql/fragments.ts +++ b/components/expenses/graphql/fragments.ts @@ -293,7 +293,6 @@ export const expensePageExpenseFieldsFragment = gql` name legalName imageUrl - hasImage type isAdmin isActive @@ -387,7 +386,6 @@ export const expensePageExpenseFieldsFragment = gql` name type imageUrl - hasImage backgroundImageUrl isActive description @@ -724,7 +722,6 @@ export const expensesListFieldsFragment = gql` slug name imageUrl - hasImage isAdmin # For Collectives, Funds, Events and Projects ... on AccountWithHost { diff --git a/components/recurring-contributions/graphql/queries.ts b/components/recurring-contributions/graphql/queries.ts index 98ec7a36186..a74a1be71bf 100644 --- a/components/recurring-contributions/graphql/queries.ts +++ b/components/recurring-contributions/graphql/queries.ts @@ -76,7 +76,6 @@ export const managedOrderFragment = gql` description tags imageUrl - hasImage backgroundImageUrl(height: 256) settings ... on AccountWithHost { diff --git a/components/transactions/graphql/fragments.ts b/components/transactions/graphql/fragments.ts index c68231dc565..5c68aee9a6b 100644 --- a/components/transactions/graphql/fragments.ts +++ b/components/transactions/graphql/fragments.ts @@ -51,7 +51,6 @@ export const transactionsQueryCollectionFragment = gql` slug type imageUrl - hasImage isIncognito ... on AccountWithParent { parent { @@ -83,7 +82,6 @@ export const transactionsQueryCollectionFragment = gql` slug type imageUrl - hasImage isIncognito ... on Event { parent { diff --git a/components/vendors/VendorForm.tsx b/components/vendors/VendorForm.tsx index 62ef9ddb423..ed53bbdf1d2 100644 --- a/components/vendors/VendorForm.tsx +++ b/components/vendors/VendorForm.tsx @@ -237,9 +237,6 @@ const VendorForm = ({ vendor, host, onSuccess, onCancel, isModal, supportsTaxFor { label: , value: 'OTHER' }, ]; const initialValues = cloneDeep(pick(vendor, EDITABLE_FIELDS)); - if (vendor?.hasImage !== true) { - initialValues.imageUrl = null; - } if (initialValues.vendorInfo?.taxType && !['EIN', 'VAT', 'GST'].includes(initialValues.vendorInfo?.taxType)) { initialValues.vendorInfo['otherTaxType'] = initialValues.vendorInfo?.taxType; initialValues.vendorInfo.taxType = 'OTHER'; diff --git a/components/vendors/queries.ts b/components/vendors/queries.ts index 2dd7512fd92..86770e9905a 100644 --- a/components/vendors/queries.ts +++ b/components/vendors/queries.ts @@ -14,7 +14,6 @@ export const vendorFieldFragment = gql` description tags imageUrl(height: 96) - hasImage isArchived createdAt