diff --git a/apps/frontend/src/components/launches/calendar.tsx b/apps/frontend/src/components/launches/calendar.tsx index 62183d14..355b620a 100644 --- a/apps/frontend/src/components/launches/calendar.tsx +++ b/apps/frontend/src/components/launches/calendar.tsx @@ -35,19 +35,16 @@ import clsx from 'clsx'; import { useFetch } from '@gitroom/helpers/utils/custom.fetch'; import { ExistingDataContextProvider } from '@gitroom/frontend/components/launches/helpers/use.existing.data'; import { useDrag, useDrop } from 'react-dnd'; -import { Integration, Post, State, Tags, TagsPosts } from '@prisma/client'; +import { Integration, Post, State, Tags } from '@prisma/client'; import { useAddProvider } from '@gitroom/frontend/components/launches/add.provider.component'; import { useToaster } from '@gitroom/react/toaster/toaster'; import { useUser } from '@gitroom/frontend/components/layout/user.context'; -import { IntegrationContext } from '@gitroom/frontend/components/launches/helpers/use.integration'; -import { PreviewPopup } from '@gitroom/frontend/components/marketplace/special.message'; import isSameOrAfter from 'dayjs/plugin/isSameOrAfter'; import isSameOrBefore from 'dayjs/plugin/isSameOrBefore'; import { groupBy, random, sortBy } from 'lodash'; import Image from 'next/image'; import { extend } from 'dayjs'; import { isUSCitizen } from './helpers/isuscitizen.utils'; -import removeMd from 'remove-markdown'; import { useInterval } from '@mantine/hooks'; import { StatisticsModal } from '@gitroom/frontend/components/launches/statistics'; import { useT } from '@gitroom/react/translation/get.transation.service.client'; @@ -659,7 +656,7 @@ export const CalendarColumn: FC<{ return (
)}
-
+ {!isBeforeNow && (
- {display !== 'day' && ( -
+
+ {display !== 'day' && (
-
- )} - {display === 'day' && ( -
- {integrations.map((selectedIntegrations) => ( + className={clsx( + 'group hover:before:h-[30px] w-full h-full rounded-[10px] flex justify-center items-center text-white' + )} + >
+ className={`group-hover:before:content-["+"] pb-[5px] flex justify-center items-center rounded-[8px] transition-all group-hover:bg-btnPrimary w-full h-full max-w-[40px] max-h-[40px]`} + /> +
+ )} + {display === 'day' && ( +
+ {integrations.map((selectedIntegrations) => (
- {selectedIntegrations.identifier} - {selectedIntegrations.identifier === 'youtube' ? ( - - ) : ( +
{selectedIntegrations.identifier} - )} + {selectedIntegrations.identifier === 'youtube' ? ( + + ) : ( + {selectedIntegrations.identifier} + )} +
-
- ))} -
- )} + ))} +
+ )} +
-
+ )} ); @@ -915,12 +916,7 @@ const CalendarItem: FC<{ isBeforeNow && '!grayscale' )} > -
+
-
+
{state === 'DRAFT' ? t('draft', 'Draft') + ': ' : ''}
-
- {stripHtmlValidation('none', post.content)} +
+
+ {stripHtmlValidation('none', post.content)} +