Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriel372 committed Apr 26, 2024
1 parent 16f866d commit 9cb4867
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
output: "export",
// output: "export",
reactStrictMode: true,
};

Expand Down
2 changes: 1 addition & 1 deletion src/components/BtnToggleMode.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const ActualThemeIsDark = typeof window !== 'undefined' ? JSON.parse(localStorag
useEffect(()=>{
// CheckUserModeTheme()
setThemeIsDark(ActualThemeIsDark);
},[])
})

function ToggleTheme() {
localStorage.setItem('ActualThemeIsDark',`${!ThemeIsDark}`);
Expand Down
4 changes: 2 additions & 2 deletions src/components/CatalogProject.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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 ;


0 comments on commit 9cb4867

Please sign in to comment.