Skip to content
This repository has been archived by the owner on Apr 5, 2024. It is now read-only.

Commit

Permalink
fix: const
Browse files Browse the repository at this point in the history
  • Loading branch information
maxgfr committed Mar 11, 2022
1 parent f9c6134 commit 444d93b
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 16 deletions.
4 changes: 2 additions & 2 deletions src/pages/404.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import * as Sentry from "@sentry/nextjs";
import { useEffect } from "react";
import { push } from "@socialgouv/matomo-next";

const Index: NextPage = () => {
const NotFound: NextPage = () => {
useEffect(() => {
Sentry.captureMessage("Page non trouvée");
push(["trackEvent", "404", "Page non trouvée"]);
Expand All @@ -16,4 +16,4 @@ const Index: NextPage = () => {
);
};

export default Index;
export default NotFound;
4 changes: 2 additions & 2 deletions src/pages/cgu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type { NextPage } from "next";
import { NextSeo } from "next-seo";
import React from "react";

const Index: NextPage = () => {
const Cgu: NextPage = () => {
return (
<>
<NextSeo
Expand Down Expand Up @@ -49,4 +49,4 @@ const Index: NextPage = () => {
);
};

export default Index;
export default Cgu;
8 changes: 4 additions & 4 deletions src/pages/healthz.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ import type { NextPage } from "next";
import { NextSeo } from "next-seo";
import React from "react";

const Index: NextPage = () => {
const HealthZ: NextPage = () => {
return (
<>
<NextSeo
title="Template | Healthz"
description="Page healthz de l'application Template."
title="Template | HealthZ"
description="Page healthZ de l'application Template."
additionalLinkTags={[
{
rel: "icon",
Expand All @@ -22,4 +22,4 @@ const Index: NextPage = () => {
);
};

export default Index;
export default HealthZ;
4 changes: 2 additions & 2 deletions src/pages/mention-legales.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import type { NextPage } from "next";
import { NextSeo } from "next-seo";
import React from "react";

const Index: NextPage = () => {
const LegalMention: NextPage = () => {
return (
<>
<NextSeo
Expand Down Expand Up @@ -92,4 +92,4 @@ const Index: NextPage = () => {
);
};

export default Index;
export default LegalMention;
4 changes: 2 additions & 2 deletions src/pages/politique-confidentialite.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const URL = [
},
];

const Index: NextPage = () => {
const Confidentiality: NextPage = () => {
return (
<>
<NextSeo
Expand Down Expand Up @@ -198,4 +198,4 @@ const Index: NextPage = () => {
);
};

export default Index;
export default Confidentiality;
8 changes: 4 additions & 4 deletions src/pages/stats.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import type { NextPage } from "next";
import { NextSeo } from "next-seo";
import React, { useEffect } from "react";

const Index: NextPage = () => {
const Stats: NextPage = () => {
const [matomoData, setMatomoData] = React.useState<MatomoResult>({
nbPageViews: 0,
nbVisits: 0,
Expand All @@ -13,8 +13,8 @@ const Index: NextPage = () => {

useEffect(() => {
(async () => {
const matomoData = await fetchMatomoData();
setMatomoData(matomoData);
const data = await fetchMatomoData();
setMatomoData(data);
})();
}, []);
return (
Expand Down Expand Up @@ -53,4 +53,4 @@ const Index: NextPage = () => {
);
};

export default Index;
export default Stats;

0 comments on commit 444d93b

Please sign in to comment.