shellphone.app/app/messages/pages/messages.tsx

29 lines
707 B
TypeScript
Raw Normal View History

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
import Layout from "../../core/layouts/layout";
import ConversationsList from "../components/conversations-list";
import useRequireOnboarding from "../../core/hooks/use-require-onboarding";
2021-07-31 14:33:18 +00:00
const Messages: BlitzPage = () => {
useRequireOnboarding();
2021-07-31 14:33:18 +00:00
return (
2021-08-01 03:05:40 +00:00
<>
2021-07-31 14:33:18 +00:00
<div className="flex flex-col space-y-6 p-6">
<p>Messages page</p>
</div>
<Suspense fallback="Loading...">
<ConversationsList />
</Suspense>
2021-08-01 03:05:40 +00:00
</>
);
};
2021-07-31 14:33:18 +00:00
2021-08-01 03:05:40 +00:00
Messages.getLayout = (page) => <Layout title="Messages">{page}</Layout>;
Messages.authenticate = { redirectTo: Routes.SignIn() };
2021-07-31 14:33:18 +00:00
export default Messages;