From 5089b06da19ad14124518b9b4935726d0050dafc Mon Sep 17 00:00:00 2001
From: Oluwaseyi Tommy <130176232+seshconcept@users.noreply.github.com>
Date: Sat, 24 Aug 2024 14:22:24 +0100
Subject: [PATCH 2/5] Fix: Icon, Bio Length and Clear Password Issues.
---
src/app/dashboard/(admin)/_components/layout/navbar/index.tsx | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/app/dashboard/(admin)/_components/layout/navbar/index.tsx b/src/app/dashboard/(admin)/_components/layout/navbar/index.tsx
index c756c0063..3158d0b5f 100644
--- a/src/app/dashboard/(admin)/_components/layout/navbar/index.tsx
+++ b/src/app/dashboard/(admin)/_components/layout/navbar/index.tsx
@@ -4,6 +4,7 @@ import { BellIcon, HelpCircle, SearchIcon } from "lucide-react";
import { useSession } from "next-auth/react";
import { useRouter } from "next/navigation";
import { useEffect, useState } from "react";
+import Link from "next/link";
import { getAllNotifications } from "~/actions/notifications/getAllNotifications";
import UserCard from "~/components/card/user-card";
@@ -109,10 +110,11 @@ const DashboardNavbar = () => {
-
+
From d78427d3c4871dbf1e4e59efd507ddb36d52b8a2 Mon Sep 17 00:00:00 2001
From: Oluwaseyi Tommy <130176232+seshconcept@users.noreply.github.com>
Date: Sat, 24 Aug 2024 14:55:48 +0100
Subject: [PATCH 3/5] Fix: Icon, Bio Length and Clear Password Issues.
---
.../(admin)/_components/layout/navbar/index.tsx | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/src/app/dashboard/(admin)/_components/layout/navbar/index.tsx b/src/app/dashboard/(admin)/_components/layout/navbar/index.tsx
index 3158d0b5f..fb9306fcd 100644
--- a/src/app/dashboard/(admin)/_components/layout/navbar/index.tsx
+++ b/src/app/dashboard/(admin)/_components/layout/navbar/index.tsx
@@ -2,9 +2,9 @@
import { BellIcon, HelpCircle, SearchIcon } from "lucide-react";
import { useSession } from "next-auth/react";
+import Link from "next/link";
import { useRouter } from "next/navigation";
import { useEffect, useState } from "react";
-import Link from "next/link";
import { getAllNotifications } from "~/actions/notifications/getAllNotifications";
import UserCard from "~/components/card/user-card";
@@ -110,10 +110,11 @@ const DashboardNavbar = () => {
-
+
+
From 2ac721e107db5c6fc7395521e8cbc6a3a892fa89 Mon Sep 17 00:00:00 2001
From: Oluwaseyi Tommy <130176232+seshconcept@users.noreply.github.com>
Date: Sat, 24 Aug 2024 15:26:25 +0100
Subject: [PATCH 4/5] Fix: Icon, Bio Length and Clear Password Issues.
---
.../settings/account/_component.tsx/password.tsx | 12 ++----------
1 file changed, 2 insertions(+), 10 deletions(-)
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 702c28328..297aab1d4 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
@@ -29,16 +29,8 @@ const Password = () => {
mode: "all",
});
- const clearPassword = (values: PasswordFormData) => {
- /*PasswordFormData({
- oldPassword: "",
- password: "",
- confirmPassword: "",
- });*/
-
- values.currentPassword = "";
- values.newPassword = "";
- values.confirmPassword = "";
+ const clearPassword = () => {
+ reset();
};
const submitHandler = async (values: PasswordFormData) => {
From deb6d1d0838ff9d8e99fc4e5db0429d543d1b212 Mon Sep 17 00:00:00 2001
From: Oluwaseyi Tommy <130176232+seshconcept@users.noreply.github.com>
Date: Sun, 25 Aug 2024 02:45:05 +0100
Subject: [PATCH 5/5] Fix: FAQ Icon(?) on Navbar, Cancel Button to Clear
Password & Max Length of Bio Message.
---
.../(user-dashboard)/_components/layout/navbar/index.tsx | 5 -----
1 file changed, 5 deletions(-)
diff --git a/src/app/dashboard/(user-dashboard)/_components/layout/navbar/index.tsx b/src/app/dashboard/(user-dashboard)/_components/layout/navbar/index.tsx
index 49cb53031..dbda9c309 100644
--- a/src/app/dashboard/(user-dashboard)/_components/layout/navbar/index.tsx
+++ b/src/app/dashboard/(user-dashboard)/_components/layout/navbar/index.tsx
@@ -1,11 +1,7 @@
"use client";
import { BellIcon, HelpCircle } from "lucide-react";
-import { useSession } from "next-auth/react";
import Link from "next/link";
-import { useRouter } from "next/navigation";
-import { useEffect, useState } from "react";
-
import UnreadNotificationCard from "~/app/dashboard/(admin)/_components/unread-notification-card/UnreadNotificationCard";
import { MobileNavlinks } from "~/app/dashboard/(user-dashboard)/_components/layout/navbar/mobile-navlinks";
@@ -78,7 +74,6 @@ const UserNavbar = () => {
className="h-6 w-6 text-neutral-dark-2 transition-colors duration-300 hover:cursor-pointer hover:text-neutral-dark-1"
/>
-