-
{t('footer.madeWith', { currentYear })}
diff --git a/src/core/components/link/link.tsx b/src/core/components/link/link.tsx
index d61169e..31d79c8 100644
--- a/src/core/components/link/link.tsx
+++ b/src/core/components/link/link.tsx
@@ -1,6 +1,5 @@
-import { FC, PropsWithChildren, useEffect, useState } from 'react'
+import { FC, PropsWithChildren } from 'react'
import NextLink from 'next/link'
-import { useRouter } from 'next/router'
interface Props {
to: string
@@ -9,20 +8,8 @@ interface Props {
}
export const Link: FC
> = ({ to, children, className, type = 'regular' }) => {
- const { asPath, isReady } = useRouter()
- const [_isActive, setIsActive] = useState(false)
-
const isExternal = to !== undefined && /^http/.test(to)
- useEffect(() => {
- if (isReady) {
- const linkPathname = new URL(to as string, location.href).pathname
- const activePathname = new URL(asPath, location.href).pathname
-
- setIsActive(linkPathname === activePathname)
- }
- }, [asPath, isReady, to])
-
if (type === 'invisible') {
return (
diff --git a/src/pages/index.tsx b/src/pages/index.tsx
deleted file mode 100644
index 7ee414a..0000000
--- a/src/pages/index.tsx
+++ /dev/null
@@ -1,23 +0,0 @@
-import type { GetStaticProps, NextPage } from 'next'
-import { HomePage } from '../features/home/ui/home.page'
-import { Article } from '../features/articles/domain/article'
-import { container } from '../core/dependency-injection/container'
-import type { Locale } from '../core/i18n/locale'
-import { GetLatestArticles } from '../features/articles/application/get-latest-articles-use-case'
-
-const Index: NextPage<{ articles: ReturnType[] }> = ({ articles }) => {
- return Article.fromJson(x))} />
-}
-
-export const getStaticProps: GetStaticProps = async ({ locale }) => {
- const articles = await container.resolve(GetLatestArticles).execute({ locale: locale as Locale })
-
- return {
- props: {
- articles: articles.map(x => x.toJson()),
- messages: (await import(`../core/i18n/${locale}.json`)).default,
- },
- }
-}
-
-export default Index
diff --git a/src/pages/_app.tsx b/src/pages/old_app.tsx
similarity index 97%
rename from src/pages/_app.tsx
rename to src/pages/old_app.tsx
index a968bac..07958cf 100644
--- a/src/pages/_app.tsx
+++ b/src/pages/old_app.tsx
@@ -42,7 +42,6 @@ const App = ({ Component, pageProps }: AppProps<{ messages: AbstractIntlMessages
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"
/>
-
setNewTheme(theme)}>