Skip to content

πŸ“¨ The ultimate agentic social media scheduling tool πŸ€–

feat: show creation method badge only when impersonating

Santosh Bhandari510f3963895e
diff --git a/apps/frontend/src/components/launches/calendar.tsx b/apps/frontend/src/components/launches/calendar.tsx
index b137e1c1e..1cb3f40bf 100644
--- a/apps/frontend/src/components/launches/calendar.tsx
+++ b/apps/frontend/src/components/launches/calendar.tsx
@@ -1006,8 +1006,11 @@ const CalendarItem: FC<{
missingRelease,
} = props;
const { disableXAnalytics } = useVariables();
+ const user = useUser();
const showCreationMethodBadge =
- post.creationMethod && post.creationMethod !== 'UNKNOWN';
+ user?.impersonate &&
+ post.creationMethod &&
+ post.creationMethod !== 'UNKNOWN';
const preview = useCallback(() => {
window.open(`/p/` + post.id + '?share=true', '_blank');
}, [post]);
@@ -1048,7 +1051,7 @@ const CalendarItem: FC<{
</div>
)}
{showCreationMethodBadge && (
- <div className="absolute -bottom-[4px] -right-[4px] z-20">
+ <div className="absolute -bottom-[4px] -right-[4px] z-10">
<CreationMethodBadge
creationMethod={post.creationMethod}
ringColor="var(--new-bgColor)"