Login:App:Confirm: remove unnecessary searchParams declarations

This commit is contained in:
Darya Umrikhina 2024-08-12 16:41:37 +04:00
parent 6a5367ccff
commit e207b5e236
9 changed files with 9 additions and 45 deletions

View File

@ -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 />;
}

View File

@ -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 />;
}

View File

@ -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 />;
}

View File

@ -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 (

View File

@ -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 (

View File

@ -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 (

View File

@ -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(),

View File

@ -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(),

View File

@ -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(),