From aaebdc3917aedd0fa5a66ac43aa559fd5d3c9056 Mon Sep 17 00:00:00 2001 From: Bartosz Jarocki Date: Wed, 24 Apr 2024 18:13:55 +0200 Subject: [PATCH] fix: remove premium badges from activity library cards --- packages/client/components/ActivityLibrary/ActivityGrid.tsx | 6 ------ .../components/ActivityLibrary/CreateActivityCard.tsx | 3 +-- packages/client/components/RetroDrawerTemplateCard.tsx | 6 ------ 3 files changed, 1 insertion(+), 14 deletions(-) diff --git a/packages/client/components/ActivityLibrary/ActivityGrid.tsx b/packages/client/components/ActivityLibrary/ActivityGrid.tsx index 5892e37aca8..75142ebdcdc 100644 --- a/packages/client/components/ActivityLibrary/ActivityGrid.tsx +++ b/packages/client/components/ActivityLibrary/ActivityGrid.tsx @@ -1,6 +1,5 @@ import React from 'react' import {Link} from 'react-router-dom' -import {ActivityBadge} from './ActivityBadge' import {ActivityCard, ActivityCardImage} from './ActivityCard' import {Template} from './ActivityLibrary' import {ActivityLibraryCardDescription} from './ActivityLibraryCardDescription' @@ -31,11 +30,6 @@ const ActivityGrid = ({templates, selectedCategory}: ActivityGridProps) => { title={template.name} type={template.type} templateRef={template} - badge={ - !template.isFree ? ( - Premium - ) : null - } > { Premium} >
diff --git a/packages/client/components/RetroDrawerTemplateCard.tsx b/packages/client/components/RetroDrawerTemplateCard.tsx index 4d668edeab1..55afd2a343c 100644 --- a/packages/client/components/RetroDrawerTemplateCard.tsx +++ b/packages/client/components/RetroDrawerTemplateCard.tsx @@ -6,7 +6,6 @@ import useAtmosphere from '../hooks/useAtmosphere' import useMutationProps from '../hooks/useMutationProps' import UpdateMeetingTemplateMutation from '../mutations/UpdateMeetingTemplateMutation' import {CATEGORY_THEMES, CategoryID} from '././ActivityLibrary/Categories' -import {ActivityBadge} from './ActivityLibrary/ActivityBadge' import {ActivityCard, ActivityCardImage} from './ActivityLibrary/ActivityCard' import {ActivityLibraryCardDescription} from './ActivityLibrary/ActivityLibraryCardDescription' @@ -54,11 +53,6 @@ const RetroDrawerTemplateCard = (props: Props) => { theme={CATEGORY_THEMES[template.category as CategoryID]} title={template.name} type='retrospective' - badge={ - !template.isFree ? ( - Premium - ) : null - } >