From 9cb486753a71ce8ca3335b79e21e962dc123e9d8 Mon Sep 17 00:00:00 2001 From: Gabriel372 Date: Fri, 26 Apr 2024 14:52:23 -0300 Subject: [PATCH] update --- next.config.mjs | 2 +- src/components/BtnToggleMode.tsx | 2 +- src/components/CatalogProject.tsx | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/next.config.mjs b/next.config.mjs index 66eb495..70d78d3 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -1,6 +1,6 @@ /** @type {import('next').NextConfig} */ const nextConfig = { - output: "export", + // output: "export", reactStrictMode: true, }; diff --git a/src/components/BtnToggleMode.tsx b/src/components/BtnToggleMode.tsx index ccdaf9f..768726c 100644 --- a/src/components/BtnToggleMode.tsx +++ b/src/components/BtnToggleMode.tsx @@ -14,7 +14,7 @@ const ActualThemeIsDark = typeof window !== 'undefined' ? JSON.parse(localStorag useEffect(()=>{ // CheckUserModeTheme() setThemeIsDark(ActualThemeIsDark); -},[]) +}) function ToggleTheme() { localStorage.setItem('ActualThemeIsDark',`${!ThemeIsDark}`); diff --git a/src/components/CatalogProject.tsx b/src/components/CatalogProject.tsx index 648939b..314685e 100644 --- a/src/components/CatalogProject.tsx +++ b/src/components/CatalogProject.tsx @@ -12,7 +12,7 @@ import { TstateModalProject,TstateTheme } from '@/types/Types'; import { useContext } from 'react'; import { MyContext } from '@/context/MyContext'; -function catalogProject({Modal,setModal}:TstateModalProject) { +function CatalogProject({Modal,setModal}:TstateModalProject) { const StyleForTechs = ' pb-1 px-1 rounded-lg flex flex-row max-w-26 items-center' const {ThemeIsDark} = useContext(MyContext) as TstateTheme ; const ThemeForComponent = ThemeIsDark ? 'text-white bg-gray-800 duration-500 border-gray-700' @@ -71,6 +71,6 @@ className=' bg-black text-white rounded-lg px-2 flex flex-row items-center py-2 } -export default catalogProject ; +export default CatalogProject ;