|
@@ -1,6 +1,7 @@
|
|
|
"use client";
|
|
|
import { GlobalNoticeRep } from "@/api/home";
|
|
|
import Box from "@/components/Box";
|
|
|
+import Empty from "@/components/Empty";
|
|
|
import { timeFormat } from "@/utils/methods";
|
|
|
import { Collapse } from "antd-mobile";
|
|
|
import { useLocale } from "next-intl";
|
|
@@ -11,6 +12,7 @@ interface Props {
|
|
|
const SystemMessage = (props: Props) => {
|
|
|
const { data } = props;
|
|
|
const locale = useLocale();
|
|
|
+ if (!data.length) return <Empty />;
|
|
|
return (
|
|
|
<div className={style.messageCollapse}>
|
|
|
<Collapse accordion>
|