diff --git a/frontend/src/components/TaskTimer.tsx b/frontend/src/components/TaskTimer.tsx index 38a258a..3db7873 100644 --- a/frontend/src/components/TaskTimer.tsx +++ b/frontend/src/components/TaskTimer.tsx @@ -24,7 +24,6 @@ function formatDuration(seconds: number) { } export function TaskTimer({ task, onUpdate }: TaskTimerProps) { - const [now, setNow] = useState(new Date()) const [isActionLoading, setIsActionLoading] = useState(false) const history = task.history ?? [] @@ -45,7 +44,7 @@ export function TaskTimer({ task, onUpdate }: TaskTimerProps) { const [displaySeconds, setDisplaySeconds] = useState(0) useEffect(() => { - let interval: NodeJS.Timeout | null = null + let interval: ReturnType | null = null if (runningItem) { interval = setInterval(() => { diff --git a/frontend/src/pages/OrganizationAdminPage.tsx b/frontend/src/pages/OrganizationAdminPage.tsx index 380d7a1..d7c98fd 100644 --- a/frontend/src/pages/OrganizationAdminPage.tsx +++ b/frontend/src/pages/OrganizationAdminPage.tsx @@ -1,6 +1,6 @@ import React, { useEffect, useState } from "react"; import { motion } from "framer-motion"; -import { Users, Check, X, ShieldAlert, Mail } from "lucide-react"; +import { Users, Check, X, Mail } from "lucide-react"; import { organizationService, type JoinRequest, diff --git a/frontend/src/pages/ProjectsPage.tsx b/frontend/src/pages/ProjectsPage.tsx index 323d9f2..988e3b9 100644 --- a/frontend/src/pages/ProjectsPage.tsx +++ b/frontend/src/pages/ProjectsPage.tsx @@ -13,7 +13,6 @@ import { } from "lucide-react"; import { useAuth } from "../contexts/AuthContext"; import { projectService, type Project } from "../services/projectService"; -import { cn } from "../lib/utils"; export const ProjectsPage: React.FC = () => { const { activeOrg } = useAuth(); @@ -79,7 +78,8 @@ export const ProjectsPage: React.FC = () => { Workspace

- Projetos em {activeOrg.name} + Projetos em{" "} + {activeOrg?.name ?? "..."}

Organize suas tarefas em fluxos de trabalho específicos. @@ -87,7 +87,10 @@ export const ProjectsPage: React.FC = () => {

- + {
-

Todos os Projetos

+

+ Todos os Projetos +

@@ -145,8 +150,11 @@ export const ProjectsPage: React.FC = () => {
- {[1, 2, 3].map(i => ( -
+ {[1, 2, 3].map((i) => ( +
U{i}
))} @@ -169,7 +177,9 @@ export const ProjectsPage: React.FC = () => {

Novo Projeto

-

Crie um novo espaço de trabalho.

+

+ Crie um novo espaço de trabalho. +

@@ -177,15 +187,15 @@ export const ProjectsPage: React.FC = () => { {filteredProjects.length === 0 && !isLoading && (
-
- -
-

- Nenhum projeto encontrado -

-

- Sua organização ainda não possui projetos para exibir. -

+
+ +
+

+ Nenhum projeto encontrado +

+

+ Sua organização ainda não possui projetos para exibir. +

)}
@@ -197,7 +207,9 @@ export const ProjectsPage: React.FC = () => { Acelere sua Produtividade

- Projetos ajudam a categorizar tarefas e manter o foco no que realmente importa. Defina metas e acompanhe o progresso em tempo real. + Projetos ajudam a categorizar tarefas e manter o foco no que + realmente importa. Defina metas e acompanhe o progresso em tempo + real.

@@ -250,7 +273,7 @@ export const ProjectsPage: React.FC = () => { exit={{ opacity: 0, scale: 0.9, y: 20 }} className="w-full max-w-lg bg-surface border border-border-soft rounded-[2.5rem] shadow-panel p-10 relative" > -
- + ([]) const [isLoading, setIsLoading] = useState(true) - const [errorMessage, setErrorMessage] = useState(null) + const [_errorMessage, setErrorMessage] = useState(null) const navigate = useNavigate() const [searchQuery, setSearchQuery] = useState('') - const [statusFilter, setStatusFilter] = useState('ALL') + const [statusFilter, setStatusFilter] = useState('ALL') const loadTasks = async (silent = false) => { if (!silent) setIsLoading(true) @@ -154,7 +154,7 @@ export function TaskListPage() {
- {['ALL', 'NOT_STARTED', 'IN_PROGRESS', 'COMPLETED', 'CANCELED'].map( + {(['ALL', ...TASK_STATUS_OPTIONS] as const).map( (status) => (