Login:App:Confirm: remove unnecessary searchParams declarations
This commit is contained in:
parent
6a5367ccff
commit
e207b5e236
@ -26,11 +26,7 @@
|
||||
|
||||
import AuthHandler from "@/components/AuthHandler";
|
||||
|
||||
type AuthProps = {
|
||||
searchParams: { [key: string]: string };
|
||||
};
|
||||
|
||||
async function Page({ searchParams }: AuthProps) {
|
||||
async function Page() {
|
||||
return <AuthHandler />;
|
||||
}
|
||||
|
||||
|
@ -26,11 +26,7 @@
|
||||
|
||||
import EmailActivationHandler from "@/components/EmailActivationHandler";
|
||||
|
||||
type EmailActivationProps = {
|
||||
searchParams: { [key: string]: string };
|
||||
};
|
||||
|
||||
async function Page({ searchParams }: EmailActivationProps) {
|
||||
async function Page() {
|
||||
return <EmailActivationHandler />;
|
||||
}
|
||||
|
||||
|
@ -26,11 +26,7 @@
|
||||
|
||||
import EmailChangeHandler from "@/components/EmailChangeHandler";
|
||||
|
||||
type EmailChangeProps = {
|
||||
searchParams: { [key: string]: string };
|
||||
};
|
||||
|
||||
async function Page({ searchParams }: EmailChangeProps) {
|
||||
async function Page() {
|
||||
return <EmailChangeHandler />;
|
||||
}
|
||||
|
||||
|
@ -30,11 +30,7 @@ import { GreetingContainer } from "@/components/GreetingContainer";
|
||||
import PasswordChangeForm from "@/components/PasswordChangeForm";
|
||||
import { getSettings } from "@/utils/actions";
|
||||
|
||||
type PasswordChangProps = {
|
||||
searchParams: { [key: string]: string };
|
||||
};
|
||||
|
||||
async function Page({ searchParams }: PasswordChangProps) {
|
||||
async function Page() {
|
||||
const settings = await getSettings();
|
||||
|
||||
return (
|
||||
|
@ -30,11 +30,7 @@ import { GreetingContainer } from "@/components/GreetingContainer";
|
||||
import { getSettings } from "@/utils/actions";
|
||||
import ChangePhoneForm from "@/components/ChangePhoneForm";
|
||||
|
||||
type PhoneActivationProps = {
|
||||
searchParams: { [key: string]: string };
|
||||
};
|
||||
|
||||
async function Page({ searchParams }: PhoneActivationProps) {
|
||||
async function Page() {
|
||||
const settings = await getSettings();
|
||||
|
||||
return (
|
||||
|
@ -30,11 +30,7 @@ import { GreetingContainer } from "@/components/GreetingContainer";
|
||||
import { getSettings } from "@/utils/actions";
|
||||
import ContinuePortalForm from "@/components/ContinuePortalForm";
|
||||
|
||||
type PortalContinueProps = {
|
||||
searchParams: { [key: string]: string };
|
||||
};
|
||||
|
||||
async function Page({ searchParams }: PortalContinueProps) {
|
||||
async function Page() {
|
||||
const settings = await getSettings();
|
||||
|
||||
return (
|
||||
|
@ -30,11 +30,7 @@ import { GreetingContainer } from "@/components/GreetingContainer";
|
||||
import { getCompanyInfoSettings, getSettings } from "@/utils/actions";
|
||||
import RemovePortalForm from "@/components/RemovePortalForm";
|
||||
|
||||
type RemovePortalProps = {
|
||||
searchParams: { [key: string]: string };
|
||||
};
|
||||
|
||||
async function Page({ searchParams }: RemovePortalProps) {
|
||||
async function Page() {
|
||||
const [settings, companyInfoSettings] = await Promise.all([
|
||||
getSettings(),
|
||||
getCompanyInfoSettings(),
|
||||
|
@ -30,11 +30,7 @@ import { GreetingContainer } from "@/components/GreetingContainer";
|
||||
import { getCompanyInfoSettings, getSettings } from "@/utils/actions";
|
||||
import DeactivatePortalForm from "@/components/DeactivatePortalForm";
|
||||
|
||||
type PortalSuspendProps = {
|
||||
searchParams: { [key: string]: string };
|
||||
};
|
||||
|
||||
async function Page({ searchParams }: PortalSuspendProps) {
|
||||
async function Page() {
|
||||
const [settings, companyInfoSettings] = await Promise.all([
|
||||
getSettings(),
|
||||
getCompanyInfoSettings(),
|
||||
|
@ -27,11 +27,7 @@
|
||||
import { getColorTheme, getSettings } from "@/utils/actions";
|
||||
import ProfileRemoveForm from "@/components/ProfileRemoveForm ";
|
||||
|
||||
type ProfileRemoveProps = {
|
||||
searchParams: { [key: string]: string };
|
||||
};
|
||||
|
||||
async function Page({ searchParams }: ProfileRemoveProps) {
|
||||
async function Page() {
|
||||
const [settings, colorTheme] = await Promise.all([
|
||||
getSettings(),
|
||||
getColorTheme(),
|
||||
|
Loading…
Reference in New Issue
Block a user