diff --git a/src/components/article-pagination/index.tsx b/src/components/article-pagination/index.tsx
index 2e6b7e7f..08629e13 100644
--- a/src/components/article-pagination/index.tsx
+++ b/src/components/article-pagination/index.tsx
@@ -4,11 +4,11 @@ interface Props {
pagination: {
previousDoc: {
slug: string | null
- name: { en: string; pt: string; es: string } | null
+ name: string | null
}
nextDoc: {
slug: string | null
- name: { en: string; pt: string; es: string } | null
+ name: string | null
}
}
hidePaginationPrevious: boolean
@@ -16,7 +16,6 @@ interface Props {
}
import styles from './styles'
-import { useIntl } from 'react-intl'
const ArticlePagination = ({
pagination,
@@ -24,7 +23,6 @@ const ArticlePagination = ({
hidePaginationPrevious,
}: Props) => {
const router = useRouter()
- const locale = useIntl().locale as 'en' | 'pt' | 'es'
const handleClick = (e: { preventDefault: () => void }, slug: string) => {
e.preventDefault()
@@ -43,7 +41,7 @@ const ArticlePagination = ({
>
- {pagination.previousDoc.name?.[locale]}
+ {pagination.previousDoc.name}
« Previous
@@ -58,9 +56,7 @@ const ArticlePagination = ({
}}
>
-
- {pagination.nextDoc.name?.[locale]}
-
+ {pagination.nextDoc.name}
Next »
diff --git a/src/pages/docs/tracks/[slug].tsx b/src/pages/docs/tracks/[slug].tsx
index 89b3354d..8107e22c 100644
--- a/src/pages/docs/tracks/[slug].tsx
+++ b/src/pages/docs/tracks/[slug].tsx
@@ -66,11 +66,11 @@ interface Props {
pagination: {
previousDoc: {
slug: string | null
- name: { en: string; pt: string; es: string } | null | null
+ name: string | null
}
nextDoc: {
slug: string | null
- name: { en: string; pt: string; es: string } | null | null
+ name: string | null
}
}
isListed: boolean
diff --git a/src/pages/docs/tutorial/[slug].tsx b/src/pages/docs/tutorial/[slug].tsx
index 7a9214a7..c8e7803c 100644
--- a/src/pages/docs/tutorial/[slug].tsx
+++ b/src/pages/docs/tutorial/[slug].tsx
@@ -66,11 +66,11 @@ interface Props {
pagination: {
previousDoc: {
slug: string | null
- name: { en: string; pt: string; es: string } | null | null
+ name: string | null
}
nextDoc: {
slug: string | null
- name: { en: string; pt: string; es: string } | null | null
+ name: string | null
}
}
isListed: boolean