From 82806893d8197bd84fce2749fc736b1933a9328e Mon Sep 17 00:00:00 2001 From: Martijn van Exel Date: Mon, 12 Feb 2024 10:10:57 -0700 Subject: [PATCH] add mastodon link to footer, replacing twitter. --- README.md | 2 +- package.json | 2 +- public/index.html | 82 +++++++++++++++---------------- src/components/Footer/Footer.js | 34 ++++++------- src/components/Sprites/Sprites.js | 14 +++--- 5 files changed, 66 insertions(+), 68 deletions(-) diff --git a/README.md b/README.md index 0de18d7dd..5eec8f79a 100644 --- a/README.md +++ b/README.md @@ -24,4 +24,4 @@ There are many different ways to contribute to MapRoulette! * Ask a question about MapRoulette on the [OSM community forum](https://community.openstreetmap.org/tag/maproulette) * Join the #maproulette channel on the [OSM US Slack](https://slack.openstreetmap.us/) -* Follow MapRoulette [on Mastodon](https://en.osm.town/@MapRoulette) or [on Twitter](https://twitter.com/maproulette) \ No newline at end of file +* Follow MapRoulette [on Mastodon](https://en.osm.town/@MapRoulette) \ No newline at end of file diff --git a/package.json b/package.json index 45b2cb2f3..48903eb4b 100644 --- a/package.json +++ b/package.json @@ -155,4 +155,4 @@ "resolutions": { "react-error-overlay": "6.0.9" } -} +} \ No newline at end of file diff --git a/public/index.html b/public/index.html index 9428c3948..abdc7716d 100644 --- a/public/index.html +++ b/public/index.html @@ -1,41 +1,37 @@ - - - - - - - - - - - - - - - + - - - - - + + + + + - - - - + + + + - - %REACT_APP_TITLE% - - - -
-
- - - - + + + \ No newline at end of file diff --git a/src/components/Footer/Footer.js b/src/components/Footer/Footer.js index 77ba32e69..c1c786a65 100644 --- a/src/components/Footer/Footer.js +++ b/src/components/Footer/Footer.js @@ -8,7 +8,7 @@ class Footer extends Component { super(props); this.state = { - data : null + data: null }; } @@ -16,17 +16,17 @@ class Footer extends Component { this.renderMyData(); } - renderMyData(){ + renderMyData() { fetch(`${process.env.REACT_APP_MAP_ROULETTE_SERVER_URL}/api/v2/service/info`) - .then((response) => response.json()) - .then((responseJson) => { - this.setState({ data : responseJson }) - }) - .catch((error) => { - console.error(error); - }); + .then((response) => response.json()) + .then((responseJson) => { + this.setState({ data: responseJson }) + }) + .catch((error) => { + console.error(error); + }); } - + render() { return (