Skip to content

Commit 009b654

Browse files
authored
Make green glow only in calendar (#1772)
* Make green glow only in calendar * chore: update ordering
1 parent 9639077 commit 009b654

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

apps/frontend/app/components/media/display-items.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ export const MetadataDisplayItem = (props: {
3131
isFirstItem?: boolean;
3232
imageClassName?: string;
3333
centerElement?: ReactNode;
34+
isCalendarEvent?: boolean;
3435
additionalInformation?: string;
3536
shouldHighlightNameIfInteracted?: boolean;
3637
onImageClickBehavior?: () => Promise<void>;
@@ -96,17 +97,19 @@ export const MetadataDisplayItem = (props: {
9697
}
9798
if (
9899
metadataDetails &&
100+
props.isCalendarEvent &&
99101
metadataDetails.lot !== MediaLot.Show &&
100-
metadataDetails.lot !== MediaLot.Podcast &&
102+
metadataDetails.lot !== MediaLot.Manga &&
101103
metadataDetails.lot !== MediaLot.Anime &&
102-
metadataDetails.lot !== MediaLot.Manga
104+
metadataDetails.lot !== MediaLot.Podcast
103105
)
104106
return completedHistory.length > 0;
105107
return false;
106108
}, [
107109
metadataDetails,
108110
completedHistory,
109111
userMetadataDetails,
112+
props.isCalendarEvent,
110113
props.calendarEventShowInfo,
111114
props.calendarEventPodcastInfo,
112115
]);

apps/frontend/app/routes/_dashboard.calendar.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ const CalendarEventMetadata = (props: {
118118

119119
return (
120120
<MetadataDisplayItem
121+
isCalendarEvent
121122
metadataId={props.item.metadataId}
122123
additionalInformation={additionalInformation}
123124
calendarEventShowInfo={props.item.showExtraInformation ?? undefined}

0 commit comments

Comments
 (0)