diff --git a/frontend/app/components/Dashboard/components/Alerts/AlertsSearch.tsx b/frontend/app/components/Dashboard/components/Alerts/AlertsSearch.tsx
index 547d5fc61..44dbfa325 100644
--- a/frontend/app/components/Dashboard/components/Alerts/AlertsSearch.tsx
+++ b/frontend/app/components/Dashboard/components/Alerts/AlertsSearch.tsx
@@ -29,7 +29,7 @@ function AlertsSearch({ changeSearch }: Props) {
value={inputValue}
name="alertsSearch"
className="bg-white p-2 border border-borderColor-gray-light-shade rounded w-full pl-10"
- placeholder="Filter by title or description"
+ placeholder="Filter by title or type"
onChange={write}
/>
diff --git a/frontend/app/components/Dashboard/components/Alerts/NewAlert.tsx b/frontend/app/components/Dashboard/components/Alerts/NewAlert.tsx
index 72143cf90..697d6426d 100644
--- a/frontend/app/components/Dashboard/components/Alerts/NewAlert.tsx
+++ b/frontend/app/components/Dashboard/components/Alerts/NewAlert.tsx
@@ -82,8 +82,6 @@ const NewAlert = (props: IProps) => {
list,
} = props;
- const [expanded, setExpanded] = React.useState(false);
-
useEffect(() => {
if (list.size === 0) fetchList();
props.fetchTriggerOptions();
@@ -187,26 +185,18 @@ const NewAlert = (props: IProps) => {
id="alert-form"
>
expanded ? null : setExpanded(!expanded)}
- className={cn('px-6 py-4 flex justify-between items-center', {
- 'cursor-pointer hover:bg-active-blue hover:shadow-border-blue rounded': !expanded,
- })}
+ className={cn('px-6 py-4 flex justify-between items-center',
+ )}
>
- write({ target: { value: name, name: 'name' }} as any)} canEdit={expanded} />
+ write({ target: { value: name, name: 'name' }} as any)} canEdit />
setExpanded(!expanded)}
>
-
- {expanded ? 'Close' : 'Edit'}
-
-
- {expanded ? (
- <>
+
-
+
{
onDelete={onDelete}
/>
- >
- ) : null}
+