Skip to content

armgit / memos

Public Imported from GitHub
0

Memos is an open-source, self-hosted note-taking app that brings your everyday thoughts together in a personal timeline. Your data stays yours, and you choose what to keep private or share.

chore: update loading section

Steven4657e58b52cb
diff --git a/web/src/pages/Explore.tsx b/web/src/pages/Explore.tsx
index 9959b2987..88f48fdef 100644
--- a/web/src/pages/Explore.tsx
+++ b/web/src/pages/Explore.tsx
@@ -44,22 +44,22 @@ const Explore = () => {
return (
<section className="page-wrapper explore">
- {loadingState.isLoading ? null : (
- <div className="page-container">
- <div className="page-header">
- <img className="logo-img" src="/logo-full.webp" alt="" />
- <div className="action-button-container">
- {user ? (
- <button className="btn" onClick={() => (window.location.href = "/")}>
- <span className="icon">🏠</span> {t("common.back-to-home")}
- </button>
- ) : (
- <button className="btn" onClick={() => (window.location.href = "/auth")}>
- <span className="icon">πŸ‘‰</span> {t("common.sign-in")}
- </button>
- )}
- </div>
+ <div className="page-container">
+ <div className="page-header">
+ <img className="logo-img" src="/logo-full.webp" alt="" />
+ <div className="action-button-container">
+ {user ? (
+ <button className="btn" onClick={() => (window.location.href = "/")}>
+ <span className="icon">🏠</span> {t("common.back-to-home")}
+ </button>
+ ) : (
+ <button className="btn" onClick={() => (window.location.href = "/auth")}>
+ <span className="icon">πŸ‘‰</span> {t("common.sign-in")}
+ </button>
+ )}
</div>
+ </div>
+ {loadingState.isLoading ? null : (
<main className="memos-wrapper">
{state.memos.map((memo) => {
const createdAtStr = dayjs(memo.createdTs).locale(locale).format("YYYY/MM/DD HH:mm:ss");
@@ -78,8 +78,8 @@ const Explore = () => {
);
})}
</main>
- </div>
- )}
+ )}
+ </div>
</section>
);
};