Add room not found view
This commit is contained in:
parent
3ed35f9477
commit
47357b3fc6
5 changed files with 119 additions and 1 deletions
|
|
@ -17,6 +17,7 @@ import { Form } from "../form/Form";
|
|||
export function RegisteredView({ client }) {
|
||||
const [loading, setLoading] = useState(false);
|
||||
const [error, setError] = useState();
|
||||
const history = useHistory();
|
||||
const onSubmit = useCallback(
|
||||
(e) => {
|
||||
e.preventDefault();
|
||||
|
|
@ -55,7 +56,6 @@ export function RegisteredView({ client }) {
|
|||
|
||||
const { modalState, modalProps } = useModalTriggerState();
|
||||
const [existingRoomId, setExistingRoomId] = useState();
|
||||
const history = useHistory();
|
||||
const onJoinExistingRoom = useCallback(() => {
|
||||
history.push(`/${existingRoomId}`);
|
||||
}, [history, existingRoomId]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue