fix not found page back button

This commit is contained in:
harshithpabbati 2022-04-08 12:57:46 +05:30
parent f037103a10
commit 77f602b17b
1 changed files with 4 additions and 1 deletions

View File

@ -1,10 +1,13 @@
import React from 'react'; import React from 'react';
import MessageCard from '@custom/shared/components/MessageCard'; import MessageCard from '@custom/shared/components/MessageCard';
import { useRouter } from 'next/router';
export default function RoomNotFound() { export default function RoomNotFound() {
const router = useRouter();
return ( return (
<div className="not-found"> <div className="not-found">
<MessageCard error header="Room not found"> <MessageCard error header="Room not found" onBack={() => router.push('/')}>
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>