931384b468
* app loader * specific loaders with spinner
26 lines
673 B
TypeScript
26 lines
673 B
TypeScript
import type { BlitzPage } from "blitz";
|
|
import { Routes, dynamic } from "blitz";
|
|
|
|
import SettingsLayout from "../../components/settings-layout";
|
|
import PhoneNumberForm from "../../components/phone/phone-number-form";
|
|
|
|
const PhoneSettings: BlitzPage = () => {
|
|
return (
|
|
<div className="flex flex-col space-y-6">
|
|
<TwilioApiForm />
|
|
<PhoneNumberForm />
|
|
</div>
|
|
);
|
|
};
|
|
|
|
const TwilioApiForm = dynamic(() => import("../../components/phone/twilio-api-form"), {
|
|
ssr: false,
|
|
loading: () => null,
|
|
});
|
|
|
|
PhoneSettings.getLayout = (page) => <SettingsLayout>{page}</SettingsLayout>;
|
|
|
|
PhoneSettings.authenticate = { redirectTo: Routes.SignIn() };
|
|
|
|
export default PhoneSettings;
|