diff --git a/src/components/Low/Input.tsx b/src/components/Low/Input.tsx
index b9020d39..bd1fb466 100644
--- a/src/components/Low/Input.tsx
+++ b/src/components/Low/Input.tsx
@@ -2,11 +2,11 @@ import clsx from "clsx";
import {useState} from "react";
interface Props {
- type: "email" | "text" | "password" | "tel";
+ type: "email" | "text" | "password" | "tel" | "number";
required?: boolean;
label?: string;
placeholder?: string;
- defaultValue?: string;
+ defaultValue?: string | number;
className?: string;
disabled?: boolean;
name: string;
diff --git a/src/interfaces/user.ts b/src/interfaces/user.ts
index e1f149f5..c80e5cc6 100644
--- a/src/interfaces/user.ts
+++ b/src/interfaces/user.ts
@@ -14,13 +14,25 @@ export interface User {
bio: string;
isVerified: boolean;
demographicInformation?: DemographicInformation;
- companyInformation?: CompanyInformation;
+ corporateInformation?: CorporateInformation;
subscriptionExpirationDate?: null | Date;
isDisabled?: boolean;
registrationDate?: Date;
}
-export interface CompanyInformation {}
+export interface CorporateInformation {
+ companyInformation: CompanyInformation;
+ payment?: {
+ value: number;
+ currency: string;
+ };
+ allowedUserAmount?: number;
+}
+
+export interface CompanyInformation {
+ name: string;
+ userAmount: number;
+}
export interface DemographicInformation {
country: string;
diff --git a/src/pages/(auth)/EmailVerification.tsx b/src/pages/(auth)/EmailVerification.tsx
new file mode 100644
index 00000000..79213ab3
--- /dev/null
+++ b/src/pages/(auth)/EmailVerification.tsx
@@ -0,0 +1,57 @@
+import Button from "@/components/Low/Button";
+import {User} from "@/interfaces/user";
+import {sendEmailVerification} from "@/utils/email";
+import axios from "axios";
+import {useRouter} from "next/router";
+import {Divider} from "primereact/divider";
+import {toast} from "react-toastify";
+
+interface Props {
+ user: User;
+ isLoading: boolean;
+ setIsLoading: (isLoading: boolean) => void;
+}
+
+export default function EmailVerification({user, isLoading, setIsLoading}: Props) {
+ const router = useRouter();
+
+ const onSuccess = () => toast.success("An e-mail has been sent, please make sure to check your spam folder!");
+
+ const onError = (e: Error) => {
+ console.error(e);
+ toast.error("Something went wrong, please logout and re-login.", {toastId: "send-verify-error"});
+ };
+
+ const logout = async () => {
+ axios.post("/api/logout").finally(() => {
+ setTimeout(() => router.reload(), 500);
+ });
+ };
+
+ return (
+ <>
+
+