diff --git a/packages/nextjs/components/dash-wind/containers/Layout.tsx b/packages/nextjs/components/dash-wind/containers/Layout.tsx index 845b1ca..8aeb745 100644 --- a/packages/nextjs/components/dash-wind/containers/Layout.tsx +++ b/packages/nextjs/components/dash-wind/containers/Layout.tsx @@ -29,7 +29,7 @@ function Layout() { if (newNotificationStatus === 0) (NotificationManager as any).error(newNotificationMessage, "Error"); dispatch(removeNotificationMessage()); } - }, [newNotificationMessage]); + }, [dispatch, newNotificationMessage, newNotificationStatus]); return ( <> diff --git a/packages/nextjs/components/dash-wind/containers/SidebarSubmenu.tsx b/packages/nextjs/components/dash-wind/containers/SidebarSubmenu.tsx index 31eb104..ce4a119 100644 --- a/packages/nextjs/components/dash-wind/containers/SidebarSubmenu.tsx +++ b/packages/nextjs/components/dash-wind/containers/SidebarSubmenu.tsx @@ -29,7 +29,7 @@ function SidebarSubmenu({ submenu, name, icon, className }: SidebarSubmenuProps) })[0] ) setIsExpanded(true); - }, []); + }, [router.pathname, submenu]); return (
diff --git a/packages/nextjs/components/dash-wind/pages/protected/Bills.tsx b/packages/nextjs/components/dash-wind/pages/protected/Bills.tsx index 576af52..da34068 100644 --- a/packages/nextjs/components/dash-wind/pages/protected/Bills.tsx +++ b/packages/nextjs/components/dash-wind/pages/protected/Bills.tsx @@ -8,7 +8,7 @@ function InternalPage() { useEffect(() => { dispatch(setPageTitle({ title: "Bills" })); - }, []); + }, [dispatch]); return ; } diff --git a/packages/nextjs/components/dash-wind/pages/protected/Blank.tsx b/packages/nextjs/components/dash-wind/pages/protected/Blank.tsx index 02e791a..e795fcc 100644 --- a/packages/nextjs/components/dash-wind/pages/protected/Blank.tsx +++ b/packages/nextjs/components/dash-wind/pages/protected/Blank.tsx @@ -8,7 +8,7 @@ function InternalPage() { useEffect(() => { dispatch(setPageTitle({ title: "Page Title" })); - }, []); + }, [dispatch]); return (
diff --git a/packages/nextjs/components/dash-wind/pages/protected/Calendar.tsx b/packages/nextjs/components/dash-wind/pages/protected/Calendar.tsx index c944738..208593e 100644 --- a/packages/nextjs/components/dash-wind/pages/protected/Calendar.tsx +++ b/packages/nextjs/components/dash-wind/pages/protected/Calendar.tsx @@ -8,7 +8,7 @@ function InternalPage() { useEffect(() => { dispatch(setPageTitle({ title: "Calendar" })); - }, []); + }, [dispatch]); return ; } diff --git a/packages/nextjs/components/dash-wind/pages/protected/Charts.tsx b/packages/nextjs/components/dash-wind/pages/protected/Charts.tsx index bf0e87b..3d6e7be 100644 --- a/packages/nextjs/components/dash-wind/pages/protected/Charts.tsx +++ b/packages/nextjs/components/dash-wind/pages/protected/Charts.tsx @@ -8,7 +8,7 @@ function InternalPage() { useEffect(() => { dispatch(setPageTitle({ title: "Analytics" })); - }, []); + }, [dispatch]); return ; } diff --git a/packages/nextjs/components/dash-wind/pages/protected/Integration.tsx b/packages/nextjs/components/dash-wind/pages/protected/Integration.tsx index 7fe1e63..3bc2bdc 100644 --- a/packages/nextjs/components/dash-wind/pages/protected/Integration.tsx +++ b/packages/nextjs/components/dash-wind/pages/protected/Integration.tsx @@ -8,7 +8,7 @@ function InternalPage() { useEffect(() => { dispatch(setPageTitle({ title: "Integrations" })); - }, []); + }, [dispatch]); return ; } diff --git a/packages/nextjs/components/dash-wind/pages/protected/Leads.tsx b/packages/nextjs/components/dash-wind/pages/protected/Leads.tsx index 5028dab..97c8723 100644 --- a/packages/nextjs/components/dash-wind/pages/protected/Leads.tsx +++ b/packages/nextjs/components/dash-wind/pages/protected/Leads.tsx @@ -8,7 +8,7 @@ function InternalPage() { useEffect(() => { dispatch(setPageTitle({ title: "Leads" })); - }, []); + }, [dispatch]); return ; } diff --git a/packages/nextjs/components/dash-wind/pages/protected/ProfileSettings.tsx b/packages/nextjs/components/dash-wind/pages/protected/ProfileSettings.tsx index a878480..8c280b9 100644 --- a/packages/nextjs/components/dash-wind/pages/protected/ProfileSettings.tsx +++ b/packages/nextjs/components/dash-wind/pages/protected/ProfileSettings.tsx @@ -8,7 +8,7 @@ function InternalPage() { useEffect(() => { dispatch(setPageTitle({ title: "Settings" })); - }, []); + }, [dispatch]); return ; } diff --git a/packages/nextjs/components/dash-wind/pages/protected/Team.tsx b/packages/nextjs/components/dash-wind/pages/protected/Team.tsx index 0889372..5e10bd3 100644 --- a/packages/nextjs/components/dash-wind/pages/protected/Team.tsx +++ b/packages/nextjs/components/dash-wind/pages/protected/Team.tsx @@ -8,7 +8,7 @@ function InternalPage() { useEffect(() => { dispatch(setPageTitle({ title: "Team Members" })); - }, []); + }, [dispatch]); return ; } diff --git a/packages/nextjs/components/dash-wind/pages/protected/Transactions.tsx b/packages/nextjs/components/dash-wind/pages/protected/Transactions.tsx index 1ed3648..1fcdb58 100644 --- a/packages/nextjs/components/dash-wind/pages/protected/Transactions.tsx +++ b/packages/nextjs/components/dash-wind/pages/protected/Transactions.tsx @@ -8,7 +8,7 @@ function InternalPage() { useEffect(() => { dispatch(setPageTitle({ title: "Transactions" })); - }, []); + }, [dispatch]); return ; } diff --git a/packages/nextjs/components/dash-wind/pages/protected/Welcome.tsx b/packages/nextjs/components/dash-wind/pages/protected/Welcome.tsx index 7ac4773..c565a6d 100644 --- a/packages/nextjs/components/dash-wind/pages/protected/Welcome.tsx +++ b/packages/nextjs/components/dash-wind/pages/protected/Welcome.tsx @@ -9,7 +9,7 @@ function InternalPage() { useEffect(() => { dispatch(setPageTitle({ title: "" })); - }, []); + }, [dispatch]); return (
diff --git a/packages/nextjs/components/dash-wind/pages/protected/_404.tsx b/packages/nextjs/components/dash-wind/pages/protected/_404.tsx index c56270d..1f74c03 100644 --- a/packages/nextjs/components/dash-wind/pages/protected/_404.tsx +++ b/packages/nextjs/components/dash-wind/pages/protected/_404.tsx @@ -8,7 +8,7 @@ function InternalPage() { useEffect(() => { dispatch(setPageTitle({ title: "" })); - }, []); + }, [dispatch]); return (