Skip to content

Commit

Permalink
Add cookie banner (#323)
Browse files Browse the repository at this point in the history
  • Loading branch information
olekenneth authored Mar 3, 2023
1 parent 5d45d68 commit b5a0245
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 0 deletions.
20 changes: 20 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"@types/react-dom": "18.0.11",
"fomantic-ui-css": "2.9.2",
"react": "18.2.0",
"react-cookie-consent": "^8.0.1",
"react-dom": "18.2.0",
"react-ga": "3.3.1",
"react-scripts": "5.0.1",
Expand Down
12 changes: 12 additions & 0 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import "./App.css";
import Header from "./Header";
import { IRoad, IFavorite } from "./types";
import Roads from "./Roads";
import CookieConsent from "react-cookie-consent";

const App = () => {
const [roads, setRoads] = useState<IRoad[]>([]);
Expand Down Expand Up @@ -90,6 +91,17 @@ const App = () => {
setFavorites={setFavorites}
/>
<Roads favorites={favorites} roads={roads} />
<CookieConsent>
This website uses{" "}
<a href="https://policies.google.com/technologies/ads?hl=en-US">
Google Ads
</a>
,{" "}
<a href="https://policies.google.com/privacy?hl=en-US#infocollect">
Google Analytics
</a>
, cookies and local storage.
</CookieConsent>
</div>
</>
);
Expand Down

0 comments on commit b5a0245

Please sign in to comment.