From e4a8634b71ef76d83a536637cbd3f70bda9f6ba6 Mon Sep 17 00:00:00 2001 From: Oluwaseyi Tommy <130176232+seshconcept@users.noreply.github.com> Date: Sat, 24 Aug 2024 13:55:40 +0100 Subject: [PATCH 1/5] Fix: Icon, Bio Length and Clear Password Issues. --- .../register/organisation/page.tsx | 2 +- src/app/(landing-routes)/contact-us/page.tsx | 26 +++++++++++-------- .../account/_component.tsx/password.tsx | 9 ++++++- .../admin/(settings)/settings/page.tsx | 15 +++++++++-- .../_components/layout/navbar/index.tsx | 11 +++++--- src/components/layouts/footer/index.tsx | 2 +- 6 files changed, 45 insertions(+), 20 deletions(-) diff --git a/src/app/(auth-routes)/register/organisation/page.tsx b/src/app/(auth-routes)/register/organisation/page.tsx index 731fccda4..a0a0f8841 100644 --- a/src/app/(auth-routes)/register/organisation/page.tsx +++ b/src/app/(auth-routes)/register/organisation/page.tsx @@ -263,7 +263,7 @@ function Organisation() {

Already Have An Account?

- + Login
diff --git a/src/app/(landing-routes)/contact-us/page.tsx b/src/app/(landing-routes)/contact-us/page.tsx index 1cc7ac903..d2d9b8680 100644 --- a/src/app/(landing-routes)/contact-us/page.tsx +++ b/src/app/(landing-routes)/contact-us/page.tsx @@ -1,4 +1,5 @@ import { ArrowRight } from "lucide-react"; +import Link from "next/link"; import ContactForm from "~/components/common/contact-us-form"; import { bizTime, contactInfo } from "./constants"; @@ -40,19 +41,22 @@ const Contact = () => { ))} -
-
-

- FAQ -

-
- + + +
+
+

+ FAQ +

+
+ +
+

+ See and get answers to the most frequent asked questions +

-

- See and get answers to the most frequent asked questions -

-
+
diff --git a/src/app/dashboard/(admin)/admin/(settings)/settings/account/_component.tsx/password.tsx b/src/app/dashboard/(admin)/admin/(settings)/settings/account/_component.tsx/password.tsx index c818f5fa5..fe9f529b5 100644 --- a/src/app/dashboard/(admin)/admin/(settings)/settings/account/_component.tsx/password.tsx +++ b/src/app/dashboard/(admin)/admin/(settings)/settings/account/_component.tsx/password.tsx @@ -31,6 +31,13 @@ const Password = () => { })); }; + const clearPassword = () => { + setFormData({ + oldPassword: "", + password: "", + confirmPassword: "", + }); + }; const submit = async () => { if (formData.password !== formData.confirmPassword) { return toast({ @@ -115,7 +122,7 @@ const Password = () => { />
- setOpen(false)}> + Cancel (); @@ -45,6 +47,11 @@ export default function SettingsPage() { linkedin: "", }); + const checkCharacterLeft = () => { + const bioLength: number = formData.bio.length; + setBioCharacterLeft(64 - bioLength); + setIsBioCharacterExceeded(bioLength > 50); + }; const linksDataHandler = ( event: ChangeEvent, ) => { @@ -317,13 +324,17 @@ export default function SettingsPage() {