initial commit
This commit is contained in:
1 parent
7cb985116e
commit
75acf7b38f
955 files changed
+37333
-87054
No files matched your search
@@ -0,0 +1,222 @@
|
||||
import Typography from "@mui/material/Typography";
|
||||
import Box from "@mui/material/Box";
|
||||
import MenuItem from "@mui/material/MenuItem";
|
||||
import Stack from "@mui/material/Stack";
|
||||
import { Button, TextInput, Select } from "@/components/inputs";
|
||||
import { BasePage, ConfigBox } from "@/components/design-elements";
|
||||
|
||||
import { useEffect, useState, useMemo } from "react";
|
||||
import { useTheme } from "@mui/material/styles";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import { inviteSchema } from "@/validation/zod";
|
||||
import { z } from "zod";
|
||||
import { useForm, Controller } from "react-hook-form";
|
||||
import { zodResolver } from "@hookform/resolvers/zod";
|
||||
import { useGet, usePost } from "@/hooks/UseApi";
|
||||
import type { ApiResponse } from "@/hooks/UseApi";
|
||||
const host = import.meta.env.VITE_APP_HOST;
|
||||
|
||||
type FormValues = z.infer<typeof inviteSchema>;
|
||||
|
||||
const Invite = () => {
|
||||
const { t } = useTranslation();
|
||||
const theme = useTheme();
|
||||
|
||||
const [token, setToken] = useState<string | null>(null);
|
||||
const { post, loading } = usePost<FormValues, any>();
|
||||
const onSubmit = async (data: FormValues) => {
|
||||
const res = await post("/invite", data);
|
||||
if (res) {
|
||||
setToken(res.data);
|
||||
}
|
||||
};
|
||||
|
||||
const { response } = useGet<ApiResponse<any>>("/roles");
|
||||
const roles = response?.data;
|
||||
const orgRoles = useMemo(
|
||||
() => roles?.filter((role: any) => role.scope === "organization"),
|
||||
[roles]
|
||||
);
|
||||
const teamRoles = useMemo(
|
||||
() => roles?.filter((role: any) => role.scope === "team"),
|
||||
[roles]
|
||||
);
|
||||
|
||||
const { response: teamsResponse } = useGet<ApiResponse<any>>("/teams");
|
||||
const teams = teamsResponse?.data;
|
||||
|
||||
const {
|
||||
handleSubmit,
|
||||
control,
|
||||
reset,
|
||||
formState: { errors },
|
||||
} = useForm<FormValues>({
|
||||
resolver: zodResolver(inviteSchema),
|
||||
defaultValues: {
|
||||
email: "",
|
||||
teamId: "",
|
||||
teamRoleId: "",
|
||||
orgRoleId: "",
|
||||
},
|
||||
});
|
||||
|
||||
useEffect(() => {
|
||||
reset({
|
||||
teamId: teams?.[0]?._id || "",
|
||||
teamRoleId: teamRoles?.[0]?._id || "",
|
||||
});
|
||||
}, [teams, teamRoles, reset]);
|
||||
|
||||
return (
|
||||
<BasePage component="form" onSubmit={handleSubmit(onSubmit)}>
|
||||
<ConfigBox
|
||||
title="Required"
|
||||
subtitle="These fields are required"
|
||||
rightContent={
|
||||
<Stack gap={theme.spacing(4)} maxWidth={400}>
|
||||
<Controller
|
||||
name="email"
|
||||
control={control}
|
||||
defaultValue=""
|
||||
render={({ field }) => (
|
||||
<TextInput
|
||||
{...field}
|
||||
fieldLabel={t("auth.common.inputs.email.label")}
|
||||
fullWidth
|
||||
placeholder={t("auth.common.inputs.email.placeholder")}
|
||||
error={!!errors.email}
|
||||
helperText={errors.email ? errors.email.message : ""}
|
||||
/>
|
||||
)}
|
||||
/>
|
||||
<Controller
|
||||
name="teamId"
|
||||
control={control}
|
||||
render={({ field }) => {
|
||||
return (
|
||||
<Stack gap={theme.spacing(8)}>
|
||||
<Select
|
||||
value={field.value}
|
||||
fieldLabel="Team"
|
||||
error={!!errors.teamId}
|
||||
onChange={field.onChange}
|
||||
>
|
||||
{teams?.map((team: any) => {
|
||||
return (
|
||||
<MenuItem key={team._id} value={team._id}>
|
||||
{team.name}
|
||||
</MenuItem>
|
||||
);
|
||||
})}
|
||||
</Select>
|
||||
</Stack>
|
||||
);
|
||||
}}
|
||||
/>
|
||||
<Controller
|
||||
name="teamRoleId"
|
||||
control={control}
|
||||
render={({ field }) => {
|
||||
const currentRole = teamRoles?.find(
|
||||
(role: any) => role._id === field.value
|
||||
);
|
||||
return (
|
||||
<Stack gap={theme.spacing(8)}>
|
||||
<Select
|
||||
value={field.value}
|
||||
fieldLabel="Team role"
|
||||
error={!!errors.teamRoleId}
|
||||
onChange={field.onChange}
|
||||
>
|
||||
{teamRoles?.map((role: any) => {
|
||||
return (
|
||||
<MenuItem key={role._id} value={role._id}>
|
||||
{role.name}
|
||||
</MenuItem>
|
||||
);
|
||||
})}
|
||||
</Select>
|
||||
<Stack>
|
||||
<Typography mb={theme.spacing(4)}>
|
||||
{currentRole && `Permissions:`}
|
||||
</Typography>
|
||||
{currentRole?.permissions?.map((perm: string) => (
|
||||
<Typography variant="body2" key={perm}>
|
||||
- {perm}
|
||||
</Typography>
|
||||
))}
|
||||
</Stack>
|
||||
</Stack>
|
||||
);
|
||||
}}
|
||||
/>
|
||||
</Stack>
|
||||
}
|
||||
/>
|
||||
|
||||
<ConfigBox
|
||||
title="Optional"
|
||||
subtitle="You can also assign an organization role"
|
||||
rightContent={
|
||||
<Stack gap={theme.spacing(4)} maxWidth={400}>
|
||||
<Controller
|
||||
name="orgRoleId"
|
||||
control={control}
|
||||
render={({ field }) => {
|
||||
const currentOrgRole = orgRoles?.find(
|
||||
(role: any) => role._id === field.value
|
||||
);
|
||||
return (
|
||||
<Stack gap={theme.spacing(8)}>
|
||||
<Select
|
||||
value={field.value}
|
||||
fieldLabel="Organization role"
|
||||
error={!!errors.orgRoleId}
|
||||
onChange={field.onChange}
|
||||
>
|
||||
{orgRoles?.map((role: any) => {
|
||||
return (
|
||||
<MenuItem key={role._id} value={role._id}>
|
||||
{role.name}
|
||||
</MenuItem>
|
||||
);
|
||||
})}
|
||||
</Select>
|
||||
<Stack>
|
||||
<Typography mb={theme.spacing(4)}>
|
||||
{currentOrgRole && `Permissions:`}
|
||||
</Typography>
|
||||
{currentOrgRole?.permissions?.map((perm: string) => (
|
||||
<Typography variant="body2" key={perm}>
|
||||
- {perm}
|
||||
</Typography>
|
||||
))}
|
||||
</Stack>
|
||||
</Stack>
|
||||
);
|
||||
}}
|
||||
/>
|
||||
</Stack>
|
||||
}
|
||||
/>
|
||||
{token && (
|
||||
<Stack>
|
||||
<Typography variant="h2">Invite link:</Typography>
|
||||
<Typography>{`${host}/register/${token}`}</Typography>
|
||||
</Stack>
|
||||
)}
|
||||
<Box flex={1}>
|
||||
<Button
|
||||
loading={loading}
|
||||
variant="contained"
|
||||
color="accent"
|
||||
type="submit"
|
||||
>
|
||||
Send Invite
|
||||
</Button>
|
||||
</Box>
|
||||
</BasePage>
|
||||
);
|
||||
};
|
||||
|
||||
export default Invite;
|
||||
@@ -0,0 +1,150 @@
|
||||
import { AuthBasePage } from "@/components/auth";
|
||||
import { Button, TextInput, TextLink } from "@/components/inputs";
|
||||
import Stack from "@mui/material/Stack";
|
||||
|
||||
import { zodResolver } from "@hookform/resolvers/zod";
|
||||
import { usePost } from "@/hooks/UseApi";
|
||||
import { useNavigate } from "react-router";
|
||||
import { useTheme } from "@mui/material/styles";
|
||||
import { useAppDispatch } from "@/hooks/AppHooks";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import {
|
||||
setAuthenticated,
|
||||
setUser,
|
||||
setSelectedTeamId,
|
||||
logout,
|
||||
} from "@/features/authSlice";
|
||||
import { z } from "zod";
|
||||
import { useForm, Controller } from "react-hook-form";
|
||||
import type { IUser } from "@/types/user";
|
||||
|
||||
const schema = z.object({
|
||||
email: z.email("Invalid email address"),
|
||||
password: z.string().min(6, "Password must be at least 6 characters"),
|
||||
});
|
||||
|
||||
type FormData = z.infer<typeof schema>;
|
||||
|
||||
const Login = () => {
|
||||
const { t } = useTranslation();
|
||||
const dispatch = useAppDispatch();
|
||||
const theme = useTheme();
|
||||
const { post, loading } = usePost<FormData, IUser>();
|
||||
const navigate = useNavigate();
|
||||
|
||||
const {
|
||||
handleSubmit,
|
||||
control,
|
||||
formState: { errors },
|
||||
} = useForm<FormData>({
|
||||
resolver: zodResolver(schema),
|
||||
defaultValues: {
|
||||
email: "",
|
||||
password: "",
|
||||
},
|
||||
});
|
||||
|
||||
const onSubmit = async (data: FormData) => {
|
||||
const result = await post("/auth/login", data);
|
||||
|
||||
if (!result) {
|
||||
dispatch(logout());
|
||||
navigate("/login");
|
||||
}
|
||||
|
||||
const user = result?.data || null;
|
||||
if (!user) {
|
||||
dispatch(logout());
|
||||
navigate("/login");
|
||||
return;
|
||||
}
|
||||
|
||||
dispatch(setAuthenticated(true));
|
||||
dispatch(setUser(user));
|
||||
dispatch(setSelectedTeamId(user.teams[0]?.id || null));
|
||||
navigate("/");
|
||||
};
|
||||
|
||||
return (
|
||||
<AuthBasePage
|
||||
title={t("auth.login.welcome")}
|
||||
subtitle={t("auth.login.heading")}
|
||||
>
|
||||
<Stack
|
||||
width={"100%"}
|
||||
alignItems={"center"}
|
||||
justifyContent={"center"}
|
||||
gap={theme.spacing(8)}
|
||||
>
|
||||
<Stack
|
||||
component="form"
|
||||
padding={theme.spacing(8)}
|
||||
gap={theme.spacing(12)}
|
||||
onSubmit={handleSubmit(onSubmit)}
|
||||
maxWidth={400}
|
||||
sx={{
|
||||
width: {
|
||||
sm: "80%",
|
||||
md: "70%",
|
||||
lg: "65%",
|
||||
xl: "65%",
|
||||
},
|
||||
}}
|
||||
>
|
||||
<Controller
|
||||
name="email"
|
||||
control={control}
|
||||
defaultValue=""
|
||||
render={({ field }) => (
|
||||
<TextInput
|
||||
{...field}
|
||||
fieldLabel={t("auth.common.inputs.email.label")}
|
||||
fullWidth
|
||||
placeholder={t("auth.common.inputs.email.placeholder")}
|
||||
error={!!errors.email}
|
||||
helperText={errors.email ? errors.email.message : ""}
|
||||
/>
|
||||
)}
|
||||
/>
|
||||
<Controller
|
||||
name="password"
|
||||
control={control}
|
||||
defaultValue=""
|
||||
render={({ field }) => (
|
||||
<TextInput
|
||||
{...field}
|
||||
type="password"
|
||||
fieldLabel={t("auth.common.inputs.password.label")}
|
||||
fullWidth
|
||||
placeholder="••••••••••"
|
||||
error={!!errors.password}
|
||||
helperText={errors.password ? errors.password.message : ""}
|
||||
/>
|
||||
)}
|
||||
/>
|
||||
<Button
|
||||
variant="contained"
|
||||
loading={loading}
|
||||
color="accent"
|
||||
type="submit"
|
||||
sx={{ width: "100%", alignSelf: "center", fontWeight: 700 }}
|
||||
>
|
||||
Login
|
||||
</Button>
|
||||
</Stack>
|
||||
<TextLink
|
||||
text={t("auth.login.links.forgotPassword")}
|
||||
linkText={t("auth.login.links.forgotPasswordLink")}
|
||||
href="/recovery"
|
||||
/>
|
||||
<TextLink
|
||||
text={t("auth.login.links.register")}
|
||||
linkText={t("auth.login.links.registerLink")}
|
||||
href="/register"
|
||||
/>
|
||||
</Stack>
|
||||
</AuthBasePage>
|
||||
);
|
||||
};
|
||||
|
||||
export default Login;
|
||||
@@ -0,0 +1,65 @@
|
||||
import { AuthBasePage } from "@/components/auth";
|
||||
import Stack from "@mui/material/Stack";
|
||||
import { RegisterForm } from "./RegisterForm";
|
||||
|
||||
import {
|
||||
setAuthenticated,
|
||||
setUser,
|
||||
setSelectedTeamId,
|
||||
logout,
|
||||
} from "@/features/authSlice";
|
||||
import { useAppDispatch } from "@/hooks/AppHooks";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import { usePost } from "@/hooks/UseApi";
|
||||
import { useNavigate } from "react-router";
|
||||
import { z } from "zod";
|
||||
import { registerSchema } from "@/validation/zod";
|
||||
|
||||
type FormData = z.infer<typeof registerSchema>;
|
||||
const Register = () => {
|
||||
const { t } = useTranslation();
|
||||
const navigate = useNavigate();
|
||||
const { post, loading, error } = usePost<Partial<FormData>, any>();
|
||||
|
||||
const dispatch = useAppDispatch();
|
||||
|
||||
const onSubmit = async (data: FormData) => {
|
||||
const submit = {
|
||||
email: data.email,
|
||||
password: data.password,
|
||||
firstName: data.firstName,
|
||||
lastName: data.lastName,
|
||||
};
|
||||
const result = await post("/auth/register", submit);
|
||||
|
||||
if (!result) {
|
||||
dispatch(logout());
|
||||
navigate("/login");
|
||||
}
|
||||
|
||||
const user = result?.data || null;
|
||||
if (!user) {
|
||||
dispatch(logout());
|
||||
navigate("/login");
|
||||
return;
|
||||
}
|
||||
|
||||
dispatch(setAuthenticated(true));
|
||||
dispatch(setUser(user));
|
||||
dispatch(setSelectedTeamId(user.teams[0]?.id || null));
|
||||
navigate("/");
|
||||
};
|
||||
|
||||
return (
|
||||
<AuthBasePage
|
||||
title={t("auth.registration.welcome")}
|
||||
subtitle={t("auth.registration.heading.user")}
|
||||
>
|
||||
<Stack alignItems={"center"} width={"100%"}>
|
||||
<RegisterForm onSubmit={onSubmit} loading={loading} error={error} />
|
||||
</Stack>
|
||||
</AuthBasePage>
|
||||
);
|
||||
};
|
||||
|
||||
export default Register;
|
||||
@@ -0,0 +1,177 @@
|
||||
import Stack from "@mui/material/Stack";
|
||||
import { TextInput } from "@/components/inputs";
|
||||
import { Button } from "@/components/inputs";
|
||||
import Typography from "@mui/material/Typography";
|
||||
|
||||
import { useForm, Controller } from "react-hook-form";
|
||||
import type { SubmitHandler } from "react-hook-form";
|
||||
import { zodResolver } from "@hookform/resolvers/zod";
|
||||
import { useEffect } from "react";
|
||||
import { z } from "zod";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import { useTheme } from "@mui/material/styles";
|
||||
import { useInitForm } from "@/hooks/forms/UseInitRegisterForm";
|
||||
|
||||
import { registerSchema } from "@/validation/zod";
|
||||
type FormData = z.infer<typeof registerSchema>;
|
||||
|
||||
export const RegisterForm = ({
|
||||
mode = "register",
|
||||
hasUser = false,
|
||||
initialData,
|
||||
onSubmit,
|
||||
loading,
|
||||
error,
|
||||
}: {
|
||||
mode?: "register" | "invite";
|
||||
hasUser?: boolean;
|
||||
initialData?: Partial<FormData>;
|
||||
onSubmit: SubmitHandler<FormData>;
|
||||
loading: boolean;
|
||||
error: string | null;
|
||||
}) => {
|
||||
const { t } = useTranslation();
|
||||
const theme = useTheme();
|
||||
const { defaults } = useInitForm({ initialData: initialData });
|
||||
|
||||
const {
|
||||
handleSubmit,
|
||||
control,
|
||||
reset,
|
||||
formState: { errors },
|
||||
} = useForm<FormData>({
|
||||
resolver: zodResolver(registerSchema),
|
||||
defaultValues: {
|
||||
email: "",
|
||||
password: "",
|
||||
confirmPassword: "",
|
||||
},
|
||||
});
|
||||
|
||||
useEffect(() => {
|
||||
reset(defaults);
|
||||
}, [initialData, reset, defaults]);
|
||||
|
||||
if (hasUser && mode === "invite") {
|
||||
return (
|
||||
<Button
|
||||
variant="contained"
|
||||
color="accent"
|
||||
onClick={() => onSubmit(defaults)}
|
||||
>
|
||||
Accept invite
|
||||
</Button>
|
||||
);
|
||||
}
|
||||
|
||||
return (
|
||||
<Stack
|
||||
component="form"
|
||||
padding={theme.spacing(8)}
|
||||
gap={theme.spacing(12)}
|
||||
onSubmit={handleSubmit(onSubmit)}
|
||||
maxWidth={400}
|
||||
sx={{
|
||||
width: {
|
||||
sm: "80%",
|
||||
md: "70%",
|
||||
lg: "65%",
|
||||
xl: "65%",
|
||||
},
|
||||
}}
|
||||
>
|
||||
<Controller
|
||||
name="email"
|
||||
control={control}
|
||||
defaultValue=""
|
||||
render={({ field }) => (
|
||||
<TextInput
|
||||
disabled={mode === "invite"}
|
||||
{...field}
|
||||
fieldLabel={t("auth.common.inputs.email.label")}
|
||||
fullWidth
|
||||
placeholder={t("auth.common.inputs.email.placeholder")}
|
||||
error={!!errors.email}
|
||||
helperText={errors.email ? errors.email.message : ""}
|
||||
/>
|
||||
)}
|
||||
/>
|
||||
<Controller
|
||||
disabled={defaults.firstName ? true : false}
|
||||
name="firstName"
|
||||
control={control}
|
||||
defaultValue=""
|
||||
render={({ field }) => (
|
||||
<TextInput
|
||||
{...field}
|
||||
fieldLabel={t("auth.common.inputs.firstName.label")}
|
||||
fullWidth
|
||||
placeholder={t("auth.common.inputs.firstName.placeholder")}
|
||||
error={!!errors.firstName}
|
||||
helperText={errors.firstName ? errors.firstName.message : ""}
|
||||
/>
|
||||
)}
|
||||
/>
|
||||
<Controller
|
||||
disabled={defaults.lastName ? true : false}
|
||||
name="lastName"
|
||||
control={control}
|
||||
defaultValue=""
|
||||
render={({ field }) => (
|
||||
<TextInput
|
||||
{...field}
|
||||
fieldLabel={t("auth.common.inputs.lastName.label")}
|
||||
fullWidth
|
||||
placeholder={t("auth.common.inputs.lastName.placeholder")}
|
||||
error={!!errors.lastName}
|
||||
helperText={errors.lastName ? errors.lastName.message : ""}
|
||||
/>
|
||||
)}
|
||||
/>
|
||||
<Controller
|
||||
name="password"
|
||||
control={control}
|
||||
defaultValue=""
|
||||
render={({ field }) => (
|
||||
<TextInput
|
||||
{...field}
|
||||
type="password"
|
||||
fieldLabel={t("auth.common.inputs.password.label")}
|
||||
fullWidth
|
||||
placeholder="••••••••••"
|
||||
error={!!errors.password}
|
||||
helperText={errors.password ? errors.password.message : ""}
|
||||
/>
|
||||
)}
|
||||
/>
|
||||
<Controller
|
||||
name="confirmPassword"
|
||||
control={control}
|
||||
defaultValue=""
|
||||
render={({ field }) => (
|
||||
<TextInput
|
||||
{...field}
|
||||
type="password"
|
||||
fieldLabel={t("auth.common.inputs.passwordConfirm.label")}
|
||||
fullWidth
|
||||
placeholder={t("auth.common.inputs.passwordConfirm.placeholder")}
|
||||
error={!!errors.confirmPassword}
|
||||
helperText={
|
||||
errors.confirmPassword ? errors.confirmPassword.message : ""
|
||||
}
|
||||
/>
|
||||
)}
|
||||
/>
|
||||
<Button
|
||||
variant="contained"
|
||||
loading={loading}
|
||||
color="accent"
|
||||
type="submit"
|
||||
sx={{ width: "100%", alignSelf: "center", fontWeight: 700 }}
|
||||
>
|
||||
{mode === "invite" ? "Accept invitation" : "Register"}
|
||||
</Button>
|
||||
{error && <Typography color="error">{error}</Typography>}
|
||||
</Stack>
|
||||
);
|
||||
};
|
||||
@@ -0,0 +1,89 @@
|
||||
import { AuthBasePage } from "@/components/auth";
|
||||
import Stack from "@mui/material/Stack";
|
||||
import { RegisterForm } from "./RegisterForm";
|
||||
|
||||
import {
|
||||
setAuthenticated,
|
||||
setUser,
|
||||
setSelectedTeamId,
|
||||
} from "@/features/authSlice";
|
||||
import { useAppDispatch } from "@/hooks/AppHooks";
|
||||
import type { ApiResponse } from "@/hooks/UseApi";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import { usePost } from "@/hooks/UseApi";
|
||||
import { useNavigate } from "react-router";
|
||||
import { z } from "zod";
|
||||
import { registerSchema } from "@/validation/zod";
|
||||
import { useGet } from "@/hooks/UseApi";
|
||||
import { useParams } from "react-router";
|
||||
import type { IUser } from "@/types/user";
|
||||
|
||||
type FormData = z.infer<typeof registerSchema>;
|
||||
const RegisterInvite = () => {
|
||||
const { id: token } = useParams();
|
||||
|
||||
const { t } = useTranslation();
|
||||
const navigate = useNavigate();
|
||||
const { post, loading, error } = usePost<Partial<FormData>, IUser>();
|
||||
const { response, error: errorInvite } = useGet<ApiResponse<any>>(
|
||||
`/invite/${token}`
|
||||
);
|
||||
const { user, invite } = response?.data || {};
|
||||
const hasUser = Boolean(user);
|
||||
const dispatch = useAppDispatch();
|
||||
|
||||
const onSubmit = async (data: FormData) => {
|
||||
const submit = {
|
||||
...(data.firstName && { firstName: data.firstName }),
|
||||
...(data.lastName && { lastName: data.lastName }),
|
||||
...(data.password && { password: data.password }),
|
||||
...(data.confirmPassword && { confirmPassword: data.confirmPassword }),
|
||||
};
|
||||
const result = await post(`/auth/register/invite/${token}`, submit);
|
||||
|
||||
if (!result) {
|
||||
dispatch(setAuthenticated(false));
|
||||
navigate("/login");
|
||||
return;
|
||||
}
|
||||
|
||||
const user: IUser = result.data;
|
||||
|
||||
if (!user) {
|
||||
dispatch(setAuthenticated(false));
|
||||
navigate("/login");
|
||||
return;
|
||||
}
|
||||
|
||||
dispatch(setAuthenticated(true));
|
||||
dispatch(setUser(user));
|
||||
dispatch(setSelectedTeamId(user.teams[0]?.id || null));
|
||||
navigate("/");
|
||||
};
|
||||
|
||||
if (errorInvite) {
|
||||
return "No invite found";
|
||||
}
|
||||
|
||||
return (
|
||||
<AuthBasePage
|
||||
title={t("auth.registration.welcome")}
|
||||
subtitle={t("auth.registration.heading.user")}
|
||||
>
|
||||
<Stack alignItems={"center"} width={"100%"}>
|
||||
<RegisterForm
|
||||
mode="invite"
|
||||
hasUser={hasUser}
|
||||
initialData={{
|
||||
email: invite?.email || "",
|
||||
}}
|
||||
onSubmit={onSubmit}
|
||||
loading={loading}
|
||||
error={error}
|
||||
/>
|
||||
</Stack>
|
||||
</AuthBasePage>
|
||||
);
|
||||
};
|
||||
|
||||
export default RegisterInvite;
|
||||
Reference in new issue
Block a user