From 12c2ea1f8289fffc8fd788126a7348ab8cc0feb7 Mon Sep 17 00:00:00 2001 From: Quan HL Date: Sat, 17 Jun 2023 14:27:13 +0700 Subject: [PATCH] improve alert view --- src/containers/internal/views/alerts/index.tsx | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/src/containers/internal/views/alerts/index.tsx b/src/containers/internal/views/alerts/index.tsx index 248d997..ba45a67 100644 --- a/src/containers/internal/views/alerts/index.tsx +++ b/src/containers/internal/views/alerts/index.tsx @@ -16,7 +16,6 @@ import { Section, SelectFilter, Spinner, - Icons, } from "src/components"; import type { Account, Alert, PageQuery } from "src/api/types"; @@ -27,6 +26,7 @@ import { getQueryFilter, setLocation, } from "src/store/localStore"; +import AlertDetailItem from "./alert-detail-item"; export const Alerts = () => { const user = useSelectState("user"); @@ -112,21 +112,7 @@ export const Alerts = () => { ) : hasLength(alerts) ? ( alerts.map((alert) => ( -
-
-
- - {dayjs(alert.time).format("YYYY MM.DD hh:mm a")} - -
-
-
- - {alert.message} -
-
-
-
+ )) ) : ( No data.