shellphone.app/app/settings/pages/settings/phone.tsx
m5r 931384b468 improve loading states:
* app loader
 * specific loaders with spinner
2021-10-18 00:06:45 +02:00

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;