2021-07-31 15:57:43 +00:00
|
|
|
import { Suspense } from "react";
|
|
|
|
import type { BlitzPage } from "blitz";
|
2021-08-01 03:05:40 +00:00
|
|
|
import { Routes } from "blitz";
|
2021-07-31 14:33:18 +00:00
|
|
|
|
2021-07-31 15:57:43 +00:00
|
|
|
import Layout from "../../core/layouts/layout";
|
|
|
|
import PhoneCallsList from "../components/phone-calls-list";
|
|
|
|
import useRequireOnboarding from "../../core/hooks/use-require-onboarding";
|
2021-07-31 14:33:18 +00:00
|
|
|
|
|
|
|
const PhoneCalls: BlitzPage = () => {
|
2021-07-31 15:57:43 +00:00
|
|
|
useRequireOnboarding();
|
2021-07-31 14:33:18 +00:00
|
|
|
|
|
|
|
return (
|
2021-08-01 03:05:40 +00:00
|
|
|
<>
|
2021-08-30 20:13:40 +00:00
|
|
|
<div className="flex flex-col space-y-6 py-3 pl-12">
|
2021-08-01 07:40:18 +00:00
|
|
|
<h2 className="text-3xl font-bold">Calls</h2>
|
2021-07-31 14:33:18 +00:00
|
|
|
</div>
|
|
|
|
<Suspense fallback="Loading...">
|
|
|
|
<PhoneCallsList />
|
|
|
|
</Suspense>
|
2021-08-01 03:05:40 +00:00
|
|
|
</>
|
2021-07-31 15:57:43 +00:00
|
|
|
);
|
|
|
|
};
|
2021-07-31 14:33:18 +00:00
|
|
|
|
2021-08-01 03:05:40 +00:00
|
|
|
PhoneCalls.getLayout = (page) => <Layout title="Calls">{page}</Layout>;
|
|
|
|
|
|
|
|
PhoneCalls.authenticate = { redirectTo: Routes.SignIn() };
|
2021-07-31 14:33:18 +00:00
|
|
|
|
2021-07-31 15:57:43 +00:00
|
|
|
export default PhoneCalls;
|