diff --git a/store/db/sqlite/seed/10002__memo.sql b/store/db/sqlite/seed/10002__memo.sql index 7a7c3022..0cab75e4 100644 --- a/store/db/sqlite/seed/10002__memo.sql +++ b/store/db/sqlite/seed/10002__memo.sql @@ -36,7 +36,8 @@ INSERT INTO VALUES ( 3, - "**[yourselfhosted/slash](https://github.com/yourselfhosted/slash)**: An open source, self-hosted bookmarks and link sharing platform. Save and share your links very easily.", + '**[Memos](https://github.com/usememos/memos)**: A lightweight, self-hosted memo hub. Open Source and Free forever. +**[Slash](https://github.com/yourselfhosted/slash)**: An open source, self-hosted bookmarks and link sharing platform. Save and share your links very easily.', 101, 'PUBLIC' ); diff --git a/web/src/components/DemoBanner.tsx b/web/src/components/DemoBanner.tsx deleted file mode 100644 index 18ffaa2e..00000000 --- a/web/src/components/DemoBanner.tsx +++ /dev/null @@ -1,38 +0,0 @@ -import { useEffect, useState } from "react"; -import { useGlobalStore } from "@/store/module"; -import Icon from "./Icon"; - -interface State { - show: boolean; -} - -const DemoBanner: React.FC = () => { - const globalStore = useGlobalStore(); - const profile = globalStore.state.systemStatus.profile; - const [state, setState] = useState({ - show: false, - }); - - useEffect(() => { - const isDemo = profile.mode === "demo"; - setState({ - show: isDemo, - }); - }, []); - - if (!state.show) return null; - - return ( -
-
- ✨ A lightweight, self-hosted memo hub. Open Source and Free forever. ✨ - - Install - - -
-
- ); -}; - -export default DemoBanner; diff --git a/web/src/layouts/Root.tsx b/web/src/layouts/Root.tsx index 893483c9..ab0a1422 100644 --- a/web/src/layouts/Root.tsx +++ b/web/src/layouts/Root.tsx @@ -1,5 +1,4 @@ import { Outlet } from "react-router-dom"; -import DemoBanner from "@/components/DemoBanner"; import Navigation from "@/components/Navigation"; import useResponsiveWidth from "@/hooks/useResponsiveWidth"; @@ -15,9 +14,6 @@ function Root() { )}
-
- -