diff --git a/frontend/src/components/AppShell.tsx b/frontend/src/components/AppShell.tsx index 967ccf1..8dc56d3 100644 --- a/frontend/src/components/AppShell.tsx +++ b/frontend/src/components/AppShell.tsx @@ -1,6 +1,8 @@ -import { Layout, ListTodo, PlusCircle, Columns, LogOut, Settings } from 'lucide-react' +import React, { useState } from 'react' +import { Layout, ListTodo, PlusCircle, Columns, LogOut, Settings, Building2 } from 'lucide-react' import { NavLink, Outlet, Navigate } from 'react-router-dom' import { useAuth } from '../contexts/AuthContext' +import { OnboardingModal } from './OnboardingModal' import { cn } from '../lib/utils' @@ -14,6 +16,7 @@ const navLinkClassName = ({ isActive }: { isActive: boolean }) => export function AppShell() { const { user, isAuthenticated, isLoading, logout } = useAuth() + const [showOrgModal, setShowOrgModal] = useState(false) if (isLoading) { return ( @@ -60,6 +63,16 @@ export function AppShell() { Nova Tarefa + {user?.organizations.some(org => org.roles.includes('OWNER') || org.roles.includes('ADMIN')) && ( @@ -114,6 +127,16 @@ export function AppShell() { Criar + {user?.organizations.some(org => org.roles.includes('OWNER') || org.roles.includes('ADMIN')) && ( @@ -122,6 +145,7 @@ export function AppShell() { )} + setShowOrgModal(false)} /> ) }