Address changes

This commit is contained in:
harshithpabbati 2022-04-12 12:04:19 +05:30
parent 47baaaef80
commit 9a926286c3
1 changed files with 3 additions and 1 deletions

View File

@ -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>