diff --git a/src/app/dashboard/(admin)/admin/(settings)/settings/page.tsx b/src/app/dashboard/(admin)/admin/(settings)/settings/page.tsx index 909155e7e..f421313da 100644 --- a/src/app/dashboard/(admin)/admin/(settings)/settings/page.tsx +++ b/src/app/dashboard/(admin)/admin/(settings)/settings/page.tsx @@ -1,6 +1,7 @@ "use client"; import axios from "axios"; +import { Camera } from "lucide-react"; import { useSession } from "next-auth/react"; import Image from "next/image"; import { ChangeEvent, useEffect, useState } from "react"; @@ -151,16 +152,16 @@ export default function SettingsPage() { }; const submit = async () => { - if (!isValidXUrl(socialLinks.x)) { + if (isValidXUrl(socialLinks.x)) { return toast({ title: "Warning!", description: "Enter a valid X url" }); } - if (!isValidInstagramUrl(socialLinks.instagram)) { + if (isValidInstagramUrl(socialLinks.instagram)) { return toast({ title: "Warning!", description: "Enter a valid Instagram url", }); } - if (!isValidLinkedInUrl(socialLinks.linkedin)) { + if (isValidLinkedInUrl(socialLinks.linkedin)) { return toast({ title: "Warning!", description: "Enter a valid Linkedin url", @@ -211,7 +212,7 @@ export default function SettingsPage() { Your photo
-
+
+