From 26f07aec5463437fa1b7a39b9e7d4d530bb7cc8f Mon Sep 17 00:00:00 2001 From: Pratyush Singh Date: Wed, 16 Jan 2019 21:31:13 +0530 Subject: [PATCH] Fix #124: Add meta tags for different routes --- package.json | 1 + public/index.html | 1 + src/competitions/CompetitionListing/index.js | 11 +++ .../CompetitionSingle/CompetitionMetaTags.js | 31 +++++++++ src/competitions/CompetitionSingle/index.js | 2 + src/feed/Explore.js | 8 +++ src/feed/NewFeed.js | 10 +++ src/feed/TagFeed.js | 11 +++ src/feed/UserFeed.js | 5 ++ src/index.js | 29 ++++++-- .../MicroCommunityMetaTags.js | 29 ++++++++ .../MicroCommunitySingle/index.js | 2 + src/post/PostSingle/PostMetaTags.js | 67 +++++++++++++++++++ src/post/PostSingle/index.js | 2 + .../UserProfile/UserProfileMetaTags.js | 37 ++++++++++ src/profile/UserProfile/index.js | 3 +- yarn.lock | 17 ++++- 17 files changed, 259 insertions(+), 7 deletions(-) create mode 100644 src/competitions/CompetitionSingle/CompetitionMetaTags.js create mode 100644 src/microCommunities/MicroCommunitySingle/MicroCommunityMetaTags.js create mode 100644 src/post/PostSingle/PostMetaTags.js create mode 100644 src/profile/UserProfile/UserProfileMetaTags.js diff --git a/package.json b/package.json index 6d4f905..505ecd4 100644 --- a/package.json +++ b/package.json @@ -35,6 +35,7 @@ "react-dev-utils": "^5.0.0", "react-dom": "^16.7.0-alpha.0", "react-draft-wysiwyg": "^1.12.11", + "react-helmet-async": "^0.2.0", "react-infinite-scroller": "^1.2.4", "react-lazyload": "^2.3.0", "react-redux": "^5.0.7", diff --git a/public/index.html b/public/index.html index 017320b..925592b 100644 --- a/public/index.html +++ b/public/index.html @@ -11,6 +11,7 @@ --> +