diff --git a/frontend-plataforma-tutoriais/src/components/header/index.tsx b/frontend-plataforma-tutoriais/src/components/header/index.tsx index 4372dee..a8211e7 100644 --- a/frontend-plataforma-tutoriais/src/components/header/index.tsx +++ b/frontend-plataforma-tutoriais/src/components/header/index.tsx @@ -69,7 +69,7 @@ export default function Header() { try { - const [videosData, videosSearchedData, workshopsData] = await Promise.all([ + const [_videosData, videosSearchedData, workshopsData] = await Promise.all([ getVideos({ page: 1 }), getVideosSearch(debouncedSearch), getWorkshopsSearch(debouncedSearch), diff --git a/frontend-plataforma-tutoriais/src/pages/private/search/index.tsx b/frontend-plataforma-tutoriais/src/pages/private/search/index.tsx index 0829186..f300635 100644 --- a/frontend-plataforma-tutoriais/src/pages/private/search/index.tsx +++ b/frontend-plataforma-tutoriais/src/pages/private/search/index.tsx @@ -12,7 +12,7 @@ import { imageSkeletonFadeStyle, onImageSkeletonLoad } from "../../../utils/imag export default function Search() { const [videos, setVideos] = useState([]); const [workshops, setWorkshops] = useState([]); - const [error, setError] = useState(null); + const [error, _setError] = useState(null); const [loading, setLoading] = useState(true); const { getVideosSearch } = useGetVideosSearch(); const { getWorkshopsSearch } = useGetWorkshopsSearch(); diff --git a/frontend-plataforma-tutoriais/src/pages/private/videos/index.tsx b/frontend-plataforma-tutoriais/src/pages/private/videos/index.tsx index 473b40e..cd31c09 100644 --- a/frontend-plataforma-tutoriais/src/pages/private/videos/index.tsx +++ b/frontend-plataforma-tutoriais/src/pages/private/videos/index.tsx @@ -14,7 +14,7 @@ import { AnimatePresence, motion } from "framer-motion"; export default function Videos() { const [loading, setLoading] = useState(true); - const [error, setError] = useState(null); + const [error, _setError] = useState(null); const [categories, setCategories] = useState([]); const [selectedCategoryId, setSelectedCategoryId] = useState("all"); const [showFilterDropdown, setShowFilterDropdown] = useState(false); diff --git a/frontend-plataforma-tutoriais/src/pages/public/register/index.tsx b/frontend-plataforma-tutoriais/src/pages/public/register/index.tsx index b294344..d90dc70 100644 --- a/frontend-plataforma-tutoriais/src/pages/public/register/index.tsx +++ b/frontend-plataforma-tutoriais/src/pages/public/register/index.tsx @@ -56,7 +56,7 @@ export default function Register() { localStorage.setItem("token", data.token); navigate("/login"); } else { - setError(data.error); + setError((data as any).error); } } catch { setError("Erro ao registar, tente novamente."); diff --git a/frontend-plataforma-tutoriais/src/routes.tsx b/frontend-plataforma-tutoriais/src/routes.tsx index e4f6da0..62765f7 100644 --- a/frontend-plataforma-tutoriais/src/routes.tsx +++ b/frontend-plataforma-tutoriais/src/routes.tsx @@ -4,7 +4,6 @@ import PublicLayout from "./pages/public/_layout"; import Dashboard from "./pages/private/dashboard"; import Users from "./pages/private/admin/users"; import Login from "./pages/public/login"; -import Register from "./pages/public/register"; import Workshops from "./pages/private/workshops"; import Contactos from "./pages/private/contactos"; import Videos from "./pages/private/videos";