This repository has been archived by the owner on Mar 22, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat/create-redirection-to-v2 (#279)
- Loading branch information
1 parent
e4b4ac5
commit f07aa37
Showing
17 changed files
with
291 additions
and
600 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,5 +16,3 @@ require("ts-node").register({ | |
target: "es2017", | ||
}, | ||
}); | ||
|
||
// Import typescript files below |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import { navigate } from "gatsby"; | ||
import { useEffect } from "react"; | ||
|
||
export const useRedirect = (location: string) => { | ||
useEffect(() => { | ||
navigate(`https://archifiltre.fr${location}`); | ||
}, [location]); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import React from "react"; | ||
|
||
import SEO from "../components/seo"; | ||
import { useRedirect } from "../hooks/useRedirect"; | ||
|
||
React; | ||
|
||
const MentionsLegales = () => { | ||
useRedirect("/mentions-legales"); | ||
return ( | ||
<> | ||
<SEO title="Mentions légales" />; | ||
</> | ||
); | ||
}; | ||
|
||
export default MentionsLegales; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import React from "react"; | ||
|
||
import SEO from "../components/seo"; | ||
import { useRedirect } from "../hooks/useRedirect"; | ||
|
||
React; | ||
|
||
const Politiques = () => { | ||
useRedirect("/politiques-de-confidentialite"); | ||
return ( | ||
<> | ||
<SEO title="Politiques de confidentialité" />; | ||
</> | ||
); | ||
}; | ||
|
||
export default Politiques; |
Oops, something went wrong.