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
+1 -2
View File
@@ -1,7 +1,6 @@
import { FC } from 'react';
import { ThemeProvider, DefaultTheme } from 'styled-components';
const Shared: FC = ({ children }) => {
const Shared = ({ children }: { children: React.ReactNode }) => {
const theme: DefaultTheme = {
colors: {
dark: {
+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;