diff --git a/src/app/setup/SetupClient.tsx b/src/app/setup/SetupClient.tsx
index 45c2a8a..1833811 100644
--- a/src/app/setup/SetupClient.tsx
+++ b/src/app/setup/SetupClient.tsx
@@ -75,8 +75,7 @@ export default function SetupClient() {
const result = await createOrganization(formData);
if (result.success) {
- router.push("/dashboard");
- router.refresh();
+ window.location.href = "/dashboard";
} else {
alert(result.error || "Erro ao finalizar instalação");
setIsSubmitting(false);
diff --git a/src/components/LoginClient.tsx b/src/components/LoginClient.tsx
index a40d2ff..9a09add 100644
--- a/src/components/LoginClient.tsx
+++ b/src/components/LoginClient.tsx
@@ -34,8 +34,7 @@ export default function LoginClient({ organization }: { organization: Organizati
setIsLoading(true);
const result = await login(email, password);
if (result.success) {
- router.push("/dashboard");
- router.refresh();
+ window.location.href = "/dashboard";
} else {
setError(result.error || "Erro ao fazer login");
setIsLoading(false);
diff --git a/src/components/Sidebar.tsx b/src/components/Sidebar.tsx
index ae67c31..d6b01a0 100644
--- a/src/components/Sidebar.tsx
+++ b/src/components/Sidebar.tsx
@@ -11,7 +11,6 @@ import {
X,
Globe,
} from "lucide-react";
-import Link from "next/link";
import { usePathname } from "next/navigation";
import { logout } from "@/app/actions/auth";
import { Button } from "@/components/ui/button";
@@ -93,7 +92,7 @@ export function Sidebar({
{menuItems.map((item) => {
const isActive = pathname === item.href || (item.href !== "/dashboard" && pathname.startsWith(item.href));
return (
-
setMobileOpen(false)}
@@ -105,7 +104,7 @@ export function Sidebar({
>
{item.label}
-
+
);
})}
@@ -131,7 +130,7 @@ export function Sidebar({
-
setMobileOpen(false)}
className="flex items-center gap-3 lg:gap-3.5 group"
@@ -148,7 +147,7 @@ export function Sidebar({
{user.email}
-
+