diff --git a/ui/actions/auth/auth.ts b/ui/actions/auth/auth.ts index d5ec199b06..1bbc79b17e 100644 --- a/ui/actions/auth/auth.ts +++ b/ui/actions/auth/auth.ts @@ -89,7 +89,14 @@ export const createNewUser = async ( return parsedResponse; } catch (error) { - return { errors: [{ detail: "Network error or server is unreachable" }] }; + return { + errors: [ + { + source: { pointer: "" }, + detail: "Network error or server is unreachable", + }, + ], + }; } }; diff --git a/ui/components/auth/oss/auth-form.tsx b/ui/components/auth/oss/auth-form.tsx index 1f1ec4384f..340515c7ad 100644 --- a/ui/components/auth/oss/auth-form.tsx +++ b/ui/components/auth/oss/auth-form.tsx @@ -1,8 +1,7 @@ "use client"; import { zodResolver } from "@hookform/resolvers/zod"; -import { Icon } from "@iconify/react"; -import { Button, Checkbox, Divider, Link } from "@nextui-org/react"; +import { Checkbox, Link } from "@nextui-org/react"; import { useRouter } from "next/navigation"; import { useForm } from "react-hook-form"; import { z } from "zod"; @@ -12,12 +11,7 @@ import { NotificationIcon, ProwlerExtended } from "@/components/icons"; import { ThemeSwitch } from "@/components/ThemeSwitch"; import { useToast } from "@/components/ui"; import { CustomButton, CustomInput } from "@/components/ui/custom"; -import { - Form, - FormControl, - FormField, - FormMessage, -} from "@/components/ui/form"; +import { Form } from "@/components/ui/form"; import { ApiError, authFormSchema } from "@/types"; export const AuthForm = ({ @@ -38,7 +32,6 @@ export const AuthForm = ({ ...(type === "sign-up" && { name: "", company: "", - termsAndConditions: false, confirmPassword: "", ...(invitationToken && { invitationToken }), }), @@ -211,33 +204,6 @@ export const AuthForm = ({ isInvalid={!!form.formState.errors.invitationToken} /> )} - ( - <> - - field.onChange(e.target.checked)} - > - I agree with the  - - Terms - -   and  - - Privacy Policy - - - - - - )} - /> )} @@ -269,7 +235,7 @@ export const AuthForm = ({ - {type === "sign-in" && ( + {/* {type === "sign-in" && ( <>
@@ -299,7 +265,7 @@ export const AuthForm = ({
- )} + )} */} {type === "sign-in" ? (

Need to create an account?  diff --git a/ui/components/ui/sidebar/sidebar-items.tsx b/ui/components/ui/sidebar/sidebar-items.tsx index a4fae9eab4..e7b2fd0072 100644 --- a/ui/components/ui/sidebar/sidebar-items.tsx +++ b/ui/components/ui/sidebar/sidebar-items.tsx @@ -142,18 +142,18 @@ export const sectionItems: SidebarItem[] = [ href: "/compliance", icon: "fluent-mdl2:compliance-audit", title: "Compliance", - endContent: ( - - New - - ), - }, - { - key: "services", - href: "/services", - icon: "material-symbols:linked-services-outline", - title: "Services", + // endContent: ( + // + // New + // + // ), }, + // { + // key: "services", + // href: "/services", + // icon: "material-symbols:linked-services-outline", + // title: "Services", + // }, ], }, @@ -167,12 +167,12 @@ export const sectionItems: SidebarItem[] = [ icon: "fluent:cloud-sync-24-regular", title: "Providers", }, - { - key: "integrations", - href: "/integrations", - icon: "tabler:puzzle", - title: "Integrations", - }, + // { + // key: "integrations", + // href: "/integrations", + // icon: "tabler:puzzle", + // title: "Integrations", + // }, ], }, ]; diff --git a/ui/types/authFormSchema.ts b/ui/types/authFormSchema.ts index a7219a69fa..ac0fc46dcf 100644 --- a/ui/types/authFormSchema.ts +++ b/ui/types/authFormSchema.ts @@ -23,12 +23,6 @@ export const authFormSchema = (type: string) => }), invitationToken: type === "sign-in" ? z.string().optional() : z.string().optional(), - termsAndConditions: - type === "sign-in" - ? z.boolean().optional() - : z.boolean().refine((value) => value === true, { - message: "You must accept the terms and conditions.", - }), // Fields for Sign In and Sign Up email: z.string().email(),