Skip to content

Commit 17cc935

Browse files
authored
feat/add-tooltip-to-assigned-badge (calcom#27262)
1 parent 43d05f4 commit 17cc935

2 files changed

Lines changed: 11 additions & 6 deletions

File tree

apps/web/modules/event-types/views/event-types-listing-view.tsx

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -214,9 +214,11 @@ const Item = ({
214214
</Badge>
215215
)}
216216
{showAssignedBadge && (
217-
<Badge variant="blue" className="ml-2" data-testid="assigned-badge">
218-
{t("assigned")}
219-
</Badge>
217+
<Tooltip content={t("you_are_assigned_to_this_event")}>
218+
<Badge variant="blue" className="ml-2" data-testid="assigned-badge">
219+
{t("assigned")}
220+
</Badge>
221+
</Tooltip>
220222
)}
221223
</div>
222224
);
@@ -256,9 +258,11 @@ const Item = ({
256258
</Badge>
257259
)}
258260
{showAssignedBadge && (
259-
<Badge variant="blue" className="ml-2" data-testid="assigned-badge">
260-
{t("assigned")}
261-
</Badge>
261+
<Tooltip content={t("you_are_assigned_to_this_event")}>
262+
<Badge variant="blue" className="ml-2" data-testid="assigned-badge">
263+
{t("assigned")}
264+
</Badge>
265+
</Tooltip>
262266
)}
263267
</div>
264268
<EventTypeDescription

apps/web/public/static/locales/en/common.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1001,6 +1001,7 @@
10011001
"hidden": "Hidden",
10021002
"readonly": "Read only",
10031003
"assigned": "Assigned",
1004+
"you_are_assigned_to_this_event": "You are assigned to this event",
10041005
"one_time_link": "One-time link",
10051006
"plan_description": "You're currently on the {{plan}} plan.",
10061007
"plan_upgrade_invitation": "Upgrade your account to the PRO plan to unlock all of the features we have to offer.",

0 commit comments

Comments
 (0)