Login:App:Confirm: remove unnecessary fragments

This commit is contained in:
Darya Umrikhina 2024-08-12 15:50:53 +04:00
parent 8cec58ae4d
commit 93ebfdbdb3
2 changed files with 16 additions and 23 deletions

View File

@ -29,10 +29,7 @@ import { FormWrapper } from "@docspace/shared/components/form-wrapper";
import { getSettings, getUserFromConfirm } from "@/utils/actions";
import ActivateUserForm from "@/components/ActivateUserForm";
import {
GreetingCleateUserContainer,
GreetingContainer,
} from "@/components/GreetingContainer";
import { GreetingCleateUserContainer } from "@/components/GreetingContainer";
type ActivationProps = {
searchParams: { [key: string]: string };
@ -44,7 +41,6 @@ async function Page({ searchParams }: ActivationProps) {
const settings = await getSettings();
return (
<>
<div className="content-top">
{settings && typeof settings !== "string" && (
<>
@ -55,7 +51,6 @@ async function Page({ searchParams }: ActivationProps) {
</>
)}
</div>
</>
);
}

View File

@ -44,13 +44,11 @@ async function Page({ searchParams }: ProfileRemoveProps) {
return (
<div className="content-center">
{settings && typeof settings !== "string" && (
<>
<ProfileRemoveForm
greetingSettings={settings.greetingSettings}
legalTerms={settings.legalTerms}
currentColorScheme={currentColorScheme}
/>
</>
)}
</div>
);