Login:Src:Components: change GreetingCreateUserContainerProps name

This commit is contained in:
Darya Umrikhina 2024-08-12 16:22:44 +04:00
parent 93ebfdbdb3
commit 85e5bbdd40
5 changed files with 9 additions and 9 deletions

View File

@ -29,7 +29,7 @@ import { FormWrapper } from "@docspace/shared/components/form-wrapper";
import { getSettings, getUserFromConfirm } from "@/utils/actions";
import ActivateUserForm from "@/components/ActivateUserForm";
import { GreetingCleateUserContainer } from "@/components/GreetingContainer";
import { GreetingCreateUserContainer } from "@/components/GreetingContainer";
type ActivationProps = {
searchParams: { [key: string]: string };
@ -44,7 +44,7 @@ async function Page({ searchParams }: ActivationProps) {
<div className="content-top">
{settings && typeof settings !== "string" && (
<>
<GreetingCleateUserContainer type={type} />
<GreetingCreateUserContainer type={type} />
<FormWrapper id="activation-form">
<ActivateUserForm passwordHash={settings.passwordHash} />
</FormWrapper>

View File

@ -29,7 +29,7 @@ import { notFound } from "next/navigation";
import { FormWrapper } from "@docspace/shared/components/form-wrapper";
import CreateUserForm from "@/components/CreateUserForm";
import { GreetingCleateUserContainer } from "@/components/GreetingContainer";
import { GreetingCreateUserContainer } from "@/components/GreetingContainer";
import { getStringFromSearchParams } from "@/utils";
import { getSettings, getUserFromConfirm } from "@/utils/actions";
import LanguageComboboxWrapper from "@/components/LanguageCombobox";
@ -58,7 +58,7 @@ async function Page({ searchParams, params }: LinkInviteProps) {
<LanguageComboboxWrapper />
{settings && typeof settings !== "string" && (
<>
<GreetingCleateUserContainer
<GreetingCreateUserContainer
type={type}
firstName={user?.firstName}
lastName={user?.lastName}

View File

@ -39,19 +39,19 @@ import { WhiteLabelLogoType } from "@docspace/shared/enums";
import { ConfirmRouteContext } from "@/components/ConfirmRoute";
import { DEFAULT_PORTAL_TEXT, DEFAULT_ROOM_TEXT } from "@/utils/constants";
import { GreetingContainer } from "./GreetingCleateUserContainer.styled";
import { GreetingContainer } from "./GreetingCreateUserContainer.styled";
type GreetingCleateUserContainerProps = {
type GreetingCreateUserContainerProps = {
type: string;
firstName?: string;
lastName?: string;
};
export const GreetingCleateUserContainer = ({
export const GreetingCreateUserContainer = ({
type,
firstName,
lastName,
}: GreetingCleateUserContainerProps) => {
}: GreetingCreateUserContainerProps) => {
const { t } = useTranslation(["Confirm", "Common"]);
const theme = useTheme();
const { roomData } = useContext(ConfirmRouteContext);

View File

@ -24,6 +24,6 @@
// content are licensed under the terms of the Creative Commons Attribution-ShareAlike 4.0
// International. See the License terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
export { GreetingCleateUserContainer } from "./GreetingCreateUserContainer/GreetingCreateUserContainer";
export { GreetingCreateUserContainer } from "./GreetingCreateUserContainer/GreetingCreateUserContainer";
export { GreetingLoginContainer } from "./GreetingLoginContainer";
export { GreetingContainer } from "./GreetingContainer";