Moved code into src folder. Added build for component library.
This commit is contained in:
18
src/pages/websites/[id]/realtime.js
Normal file
18
src/pages/websites/[id]/realtime.js
Normal file
@@ -0,0 +1,18 @@
|
||||
import { useRouter } from 'next/router';
|
||||
import AppLayout from 'components/layout/AppLayout';
|
||||
import RealtimePage from 'components/pages/realtime/RealtimePage';
|
||||
|
||||
export default function () {
|
||||
const router = useRouter();
|
||||
const { id: websiteId } = router.query;
|
||||
|
||||
if (!websiteId) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return (
|
||||
<AppLayout>
|
||||
<RealtimePage websiteId={websiteId} />
|
||||
</AppLayout>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user