Fix remaining warnings and remove leave necessary social links

This commit is contained in:
Hazem Krimi
2023-03-19 00:39:52 +01:00
parent c97cb80ce8
commit d8c97a2df5
15 changed files with 29 additions and 32 deletions
+2 -2
View File
@@ -1,4 +1,4 @@
import { FC, useReducer, useEffect, createContext } from 'react';
import { useReducer, useEffect, createContext } from 'react';
export const ThemeContext = createContext<{ mode: string; toggle: () => void }>({
mode: 'light',
@@ -18,7 +18,7 @@ const reducer = (state: string, action: { type: string }) => {
}
};
const Theme: FC = ({ children }) => {
const Theme = ({ children }: { children: React.ReactNode }) => {
const [mode, dispatch] = useReducer(reducer, 'light');
const toggle = () => {
const root = window.document.documentElement;