Login:Src:Components: change GreetingCreateUserContainerProps name
This commit is contained in:
parent
93ebfdbdb3
commit
85e5bbdd40
@ -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>
|
||||
|
@ -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}
|
||||
|
@ -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);
|
||||
|
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user