feat: mute list

This commit is contained in:
2023-07-30 00:26:16 +02:00
parent 99e5b9688f
commit 0a5623e74f
12 changed files with 248 additions and 97 deletions

View File

@ -5,7 +5,7 @@ import { Outlet, useNavigate } from "react-router-dom";
import { Helmet } from "react-helmet";
import { Icon } from "element/icon";
import { useLogin } from "hooks/login";
import { useLogin, useLoginEvents } from "hooks/login";
import { Profile } from "element/profile";
import { NewStreamDialog } from "element/new-stream";
import { LoginSignup } from "element/login-signup";
@ -17,6 +17,7 @@ export function LayoutPage() {
const navigate = useNavigate();
const login = useLogin();
const [showLogin, setShowLogin] = useState(false);
useLoginEvents(login?.pubkey, true);
function loggedIn() {
if (!login) return;
@ -105,4 +106,4 @@ export function LayoutPage() {
<Outlet />
</div>
);
}
}