Add better navigation
This commit is contained in:
parent
c2d7156033
commit
4f599dcb7b
5 changed files with 27 additions and 1 deletions
|
|
@ -60,6 +60,15 @@ export function JoinOrCreateRoom({ manager }) {
|
|||
[manager]
|
||||
);
|
||||
|
||||
const onLogout = useCallback(
|
||||
(e) => {
|
||||
e.preventDefault();
|
||||
manager.logout();
|
||||
history.push("/");
|
||||
},
|
||||
[manager]
|
||||
);
|
||||
|
||||
return (
|
||||
<div className="page">
|
||||
<h1>Matrix Video Chat</h1>
|
||||
|
|
@ -99,6 +108,9 @@ export function JoinOrCreateRoom({ manager }) {
|
|||
</li>
|
||||
))}
|
||||
</ul>
|
||||
<button type="button" onClick={onLogout}>
|
||||
Log Out
|
||||
</button>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue