diff --git a/components/organisms/Navigation/index.tsx b/components/organisms/Navigation/index.tsx
index f5285a4..cb5e4ef 100644
--- a/components/organisms/Navigation/index.tsx
+++ b/components/organisms/Navigation/index.tsx
@@ -1,20 +1,14 @@
import Logo from "assets/images/logo.svg";
import { AnimatedView } from "components/atoms";
-import consts from "consts";
import useGlobalization from "hooks/useGlobalization";
import Link from "next/link";
import { useRouter } from "next/router";
import React, { useContext, useState } from "react";
import { BsGithub, BsLinkedin } from "react-icons/bs";
import { ThemeContext } from "templates/ThemeProvider";
-import { Project } from "types";
-import Cookies from "universal-cookie";
import navigation from "utils/data/navigation.json";
import { Burger } from "../../atoms/Button";
import Nav from "./Nav.styled";
-import * as fs from "fs/promises";
-import path from "path";
-import grayMatter from "gray-matter";
const Pages = navigation;
@@ -48,7 +42,7 @@ const Navigation = ({ hasReadPermission, previous, next }: any) => {
>
{
};
return [
{
- date: `${new Date("01-01-2023").toLocaleDateString(
+ date: `${new Date(2023, 1, 1).toLocaleDateString(
dateLocale,
options
)} - ${translate("about.experience.present", "Present")}`,
@@ -53,10 +53,10 @@ const jobs = (globalization: Globalization) => {
role: translate("about.experience.fullTime", "Full-time"),
},
{
- date: `${new Date("11-01-2017").toLocaleDateString(
+ date: `${new Date(2017, 11, 1).toLocaleDateString(
dateLocale,
options
- )} - ${new Date("12-31-2022").toLocaleDateString(dateLocale, options)}`,
+ )} - ${new Date(2022, 12, 31).toLocaleDateString(dateLocale, options)}`,
title: translate(
"about.experience.seniorFrontendEngineer",
"Senior Front-end Engineer"
@@ -66,10 +66,10 @@ const jobs = (globalization: Globalization) => {
role: translate("about.experience.fullTime", "Full-time"),
},
{
- date: `${new Date("06-01-2015").toLocaleDateString(
+ date: `${new Date(2015, 6, 1).toLocaleDateString(
dateLocale,
options
- )} - ${new Date("11-01-2017").toLocaleDateString(dateLocale, options)}`,
+ )} - ${new Date(2017, 11, 1).toLocaleDateString(dateLocale, options)}`,
title: translate(
"about.experience.frontendEngineer",
"Front-end Engineer"
diff --git a/pages/index.tsx b/pages/index.tsx
index ca783a7..79546e3 100644
--- a/pages/index.tsx
+++ b/pages/index.tsx
@@ -7,7 +7,6 @@ import Head from "next/head";
import Image from "next/image";
import Link from "next/link";
import path from "path";
-import { useState } from "react";
import AnimatedView from "../components/atoms/AnimatedView";
import { Project } from "../types";
@@ -15,7 +14,6 @@ interface Props {
projects: Project[];
}
const Home: NextPage
= ({ projects }: Props) => {
- const [headerAnimateState, setHeaderAniamteState] = useState(false);
const { getLocalizedString } = useGlobalization();
function WorkItems() {
@@ -140,13 +138,12 @@ const Home: NextPage = ({ projects }: Props) => {
setHeaderAniamteState(state)}
className="m-0 max-sm:text-2xl"
/>
-
+
{getLocalizedString("home", "contact-title")}
diff --git a/templates/ThemeProvider/index.tsx b/templates/ThemeProvider/index.tsx
index 4ccffae..b0a648b 100644
--- a/templates/ThemeProvider/index.tsx
+++ b/templates/ThemeProvider/index.tsx
@@ -1,10 +1,4 @@
-import React, {
- createContext,
- Dispatch,
- SetStateAction,
- useEffect,
- useState,
-} from "react";
+import React, { createContext, useEffect, useState } from "react";
type Theme = "light" | "dark";