From 0522af0c887319cc6d1e238677c1309b01943ca0 Mon Sep 17 00:00:00 2001
From: Tushar Bhatt <95581504+TusharBhatt1@users.noreply.github.com>
Date: Tue, 4 Feb 2025 18:44:09 +0530
Subject: [PATCH] fix: empty state search messaging event page (#19064)
* test
* fix: adding empty search headline
* revert a change
---
.../views/event-types-listing-view.tsx | 18 ++++++++++++------
apps/web/public/static/locales/en/common.json | 1 +
2 files changed, 13 insertions(+), 6 deletions(-)
diff --git a/apps/web/modules/event-types/views/event-types-listing-view.tsx b/apps/web/modules/event-types/views/event-types-listing-view.tsx
index d5b42ba4ec..8fc5acd87c 100644
--- a/apps/web/modules/event-types/views/event-types-listing-view.tsx
+++ b/apps/web/modules/event-types/views/event-types-listing-view.tsx
@@ -457,9 +457,9 @@ export const InfiniteEventTypeList = ({
if (isPending) return ;
return group.teamId ? (
-
+
) : !group.profile.eventTypesLockedByOrg ? (
-
+
) : (
<>>
);
@@ -818,13 +818,13 @@ export const InfiniteEventTypeList = ({
);
};
-const CreateFirstEventTypeView = ({ slug }: { slug: string }) => {
+const CreateFirstEventTypeView = ({ slug, searchTerm }: { slug: string; searchTerm?: string }) => {
const { t } = useLocale();
return (
{
+const EmptyEventTypeList = ({
+ group,
+ searchTerm,
+}: {
+ group: EventTypeGroup | InfiniteEventTypeGroup;
+ searchTerm?: string;
+}) => {
const { t } = useLocale();
return (
<>