feat: NIP-51

This commit is contained in:
Alejandro Gomez
2023-01-26 12:34:18 +01:00
parent 83df146716
commit cfbf244955
21 changed files with 314 additions and 35 deletions

View File

@ -0,0 +1,14 @@
import { useDispatch } from "react-redux";
import { useNavigate } from "react-router-dom";
import { logout } from "State/Login";
export default function LogoutButton(){
const dispatch = useDispatch()
const navigate = useNavigate()
return (
<button className="secondary" type="button" onClick={() => { dispatch(logout()); navigate("/"); }}>
Logout
</button>
)
}