diff --git a/package.json b/package.json index aefedb6..0808450 100644 --- a/package.json +++ b/package.json @@ -16,6 +16,7 @@ "react-dom": "^16.13.0", "react-modal": "^3.11.2", "react-router-dom": "^5.1.2", + "react-router-hash-link": "^1.2.2", "react-scripts": "3.4.0", "shortid": "^2.2.15", "simple-peer": "^9.6.2", diff --git a/src/components/Link.js b/src/components/Link.js index f5264cc..5f29f97 100644 --- a/src/components/Link.js +++ b/src/components/Link.js @@ -1,6 +1,6 @@ import React from "react"; import { Link as ThemeLink } from "theme-ui"; -import { Link as RouterLink } from "react-router-dom"; +import { HashLink as RouterLink } from "react-router-hash-link"; function Link({ to, ...rest }) { return ( diff --git a/src/components/map/MapTiles.js b/src/components/map/MapTiles.js index a71e761..4ebc275 100644 --- a/src/components/map/MapTiles.js +++ b/src/components/map/MapTiles.js @@ -87,8 +87,8 @@ function MapTiles({ p={1} > - Map saving is unavailable. See FAQ for more - information. + Map saving is unavailable. See FAQ for + more information. )} diff --git a/src/components/party/StartStreamButton.js b/src/components/party/StartStreamButton.js index b55020f..749368c 100644 --- a/src/components/party/StartStreamButton.js +++ b/src/components/party/StartStreamButton.js @@ -22,7 +22,7 @@ function StartStreamButton({ onStreamStart, onStreamEnd, stream }) { Browser not supported for audio sharing.

- See FAQ for more information. + See FAQ for more information. ); @@ -35,7 +35,7 @@ function StartStreamButton({ onStreamStart, onStreamEnd, stream }) { Ensure "Share audio" is selected when sharing.

- See FAQ for more information. + See FAQ for more information. ); diff --git a/src/routes/FAQ.js b/src/routes/FAQ.js index 8cb6e3e..8a3afef 100644 --- a/src/routes/FAQ.js +++ b/src/routes/FAQ.js @@ -26,7 +26,7 @@ function FAQ() { Frequently Asked Questions - + Using Radio (experimental) @@ -61,7 +61,13 @@ function FAQ() { {" "} on the Mozilla Developer Network. - + Connection @@ -131,7 +137,7 @@ function FAQ() { . - + Saving diff --git a/src/routes/Game.js b/src/routes/Game.js index 47aa799..f5d2c96 100644 --- a/src/routes/Game.js +++ b/src/routes/Game.js @@ -501,7 +501,8 @@ function Game() { setPeerError(null)}> - {peerError} See FAQ for more information. + {peerError} See FAQ for more + information. diff --git a/yarn.lock b/yarn.lock index ef5eb89..0645779 100644 --- a/yarn.lock +++ b/yarn.lock @@ -8843,7 +8843,7 @@ prompts@^2.0.1: kleur "^3.0.3" sisteransi "^1.0.3" -prop-types@^15.5.10, prop-types@^15.6.1, prop-types@^15.6.2, prop-types@^15.7.2: +prop-types@^15.5.10, prop-types@^15.6.0, prop-types@^15.6.1, prop-types@^15.6.2, prop-types@^15.7.2: version "15.7.2" resolved "https://registry.yarnpkg.com/prop-types/-/prop-types-15.7.2.tgz#52c41e75b8c87e72b9d9360e0206b99dcbffa6c5" integrity sha512-8QQikdH7//R2vurIJSutZ1smHYTcLpRWEOlHnzcWHmBYrOGUysKwSsrC89BCiFj3CbrfJ/nXFdJepOVrY1GCHQ== @@ -9102,6 +9102,13 @@ react-router-dom@^5.1.2: tiny-invariant "^1.0.2" tiny-warning "^1.0.0" +react-router-hash-link@^1.2.2: + version "1.2.2" + resolved "https://registry.yarnpkg.com/react-router-hash-link/-/react-router-hash-link-1.2.2.tgz#7a0ad5e925d49596d19554de8bc6c554ce4f8099" + integrity sha512-LBthLVHdqPeKDVt3+cFRhy15Z7veikOvdKRZRfyBR2vjqIE7rxn+tKLjb6DOmLm6JpoQVemVDnxQ35RVnEHdQA== + dependencies: + prop-types "^15.6.0" + react-router@5.1.2: version "5.1.2" resolved "https://registry.yarnpkg.com/react-router/-/react-router-5.1.2.tgz#6ea51d789cb36a6be1ba5f7c0d48dd9e817d3418"