Address changes
This commit is contained in:
parent
47baaaef80
commit
9a926286c3
|
|
@ -5,9 +5,11 @@ import { useRouter } from 'next/router';
|
||||||
export default function RoomNotFound() {
|
export default function RoomNotFound() {
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
|
|
||||||
|
const returnToHomePage = () => router.push('/');
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="not-found">
|
<div className="not-found">
|
||||||
<MessageCard error header="Room not found" onBack={() => router.push('/')}>
|
<MessageCard error header="Room not found" onBack={returnToHomePage}>
|
||||||
The room you are trying to join does not exist. Have you created the
|
The room you are trying to join does not exist. Have you created the
|
||||||
room using the Daily REST API or the dashboard?
|
room using the Daily REST API or the dashboard?
|
||||||
</MessageCard>
|
</MessageCard>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue