mirror of
https://github.com/usememos/memos.git
synced 2025-06-05 22:09:59 +02:00
chore: add no data tip
This commit is contained in:
@@ -78,7 +78,8 @@ const Explore = () => {
|
||||
</div>
|
||||
<Only when={!loadingState.isLoading}>
|
||||
<main className="memos-wrapper">
|
||||
{state.memos.map((memo) => {
|
||||
{state.memos.length > 0 ? (
|
||||
state.memos.map((memo) => {
|
||||
const createdAtStr = dayjs(memo.createdTs).locale(locale).format("YYYY/MM/DD HH:mm:ss");
|
||||
return (
|
||||
<div className="memo-container" key={memo.id}>
|
||||
@@ -93,7 +94,10 @@ const Explore = () => {
|
||||
<MemoResources memo={memo} />
|
||||
</div>
|
||||
);
|
||||
})}
|
||||
})
|
||||
) : (
|
||||
<p className="w-full text-center mt-12 text-gray-600">{t("message.no-memos")}</p>
|
||||
)}
|
||||
</main>
|
||||
</Only>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user