From 4a0e13060ecf921114ad33bf01bb921d9a466cce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pr=C3=A3t!k=20K=C3=A0b=C3=A1d=C3=A9?= Date: Fri, 21 Jun 2024 14:00:00 +0100 Subject: [PATCH] bug-fix: build-error --- src/pages/PM.tsx | 2 +- src/pages/SM.tsx | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/src/pages/PM.tsx b/src/pages/PM.tsx index 65cca97..eab90ca 100644 --- a/src/pages/PM.tsx +++ b/src/pages/PM.tsx @@ -69,7 +69,7 @@ export const PM = () => {
60 ? 'text-success' : - percentageAvailableFunds > 40 ? 'text-warning' : 'text-error'}`} style={{ "--value": percentageAvailableFunds }} role="progressbar"> + percentageAvailableFunds > 40 ? 'text-warning' : 'text-error'}`} style={{ "--value": percentageAvailableFunds } as React.CSSProperties} role="progressbar"> {percentageAvailableFunds}%
diff --git a/src/pages/SM.tsx b/src/pages/SM.tsx index 23ccf43..e1206fe 100644 --- a/src/pages/SM.tsx +++ b/src/pages/SM.tsx @@ -3,7 +3,6 @@ import TaskInterface from "../interfaces/TaskInterface"; import ProjectInterface from "../interfaces/ProjectInterface"; import EmployeeInterface from "../interfaces/EmployeeInterface"; import StatusOptions from "../interfaces/StatusOptions"; -import FinanceInterface from "../interfaces/FinanceInterface"; import PageName from "../functions/PageName"; import { GetItem, SetItem } from "../functions/ArrayData"; import { FundingStatus } from "../components/FundingStatus"; @@ -13,7 +12,6 @@ export const SM = () => { const [tasks, setTasks] = useState([]); const [projects, setProjects] = useState([]); const [employees, setEmployees] = useState([]); - const [finances, setFinances] = useState([]); useEffect(() => { const tasks = GetItem('tasks'); @@ -22,8 +20,6 @@ export const SM = () => { setProjects(projects); const employees = GetItem('employees'); setEmployees(employees); - const finances = GetItem('finances'); - setFinances(finances); PageName('SM'); }, []);