Skip to content

Commit c741d81

Browse files
fix: added icon and description in team event type empty page (calcom#24951)
1 parent b01cb27 commit c741d81

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -877,12 +877,15 @@ const EmptyEventTypeList = ({
877877
return (
878878
<>
879879
<EmptyScreen
880+
Icon="link"
880881
headline={searchTerm ? t("no_result_found_for", { searchTerm }) : t("team_no_event_types")}
882+
description={t("new_team_event_type_description")}
883+
className="mb-16"
881884
buttonRaw={
882885
<Button
883886
href={`?dialog=new&eventPage=${group.profile.slug}&teamId=${group.teamId}`}
884887
variant="button"
885-
className="mt-5">
888+
>
886889
{t("create")}
887890
</Button>
888891
}
@@ -1003,7 +1006,7 @@ const EventTypesPage = ({ userEventGroupsData, user }: Props) => {
10031006
if (redirectUrl) {
10041007
router.push(redirectUrl);
10051008
}
1006-
}, []);
1009+
}, [router]);
10071010

10081011
useEffect(() => {
10091012
setShowProfileBanner(

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -947,6 +947,7 @@
947947
"new_event_type_btn": "New event type",
948948
"new_event_type_heading": "Create your first event type",
949949
"new_event_type_description": "Event types enable you to share links that show available times on your calendar and allow people to make bookings with you.",
950+
"new_team_event_type_description": "Event types enable the team to share links that show available times on their calendars and allow people to make bookings with the team.",
950951
"event_type_created_successfully": "{{eventTypeTitle}} event type created successfully",
951952
"no_call_history": "No call history",
952953
"no_call_history_description": "No matching call history found for the particular account/search query.",

0 commit comments

Comments
 (0)