fix not found page back button
This commit is contained in:
parent
f037103a10
commit
77f602b17b
|
|
@ -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>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue