Created
September 14, 2018 13:01
-
-
Save bobsilverberg/4271d3b2ba6a64f117126b9930bc6fe9 to your computer and use it in GitHub Desktop.
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
diff --git a/src/amo/components/AddonReviewCard/index.js b/src/amo/components/AddonReviewCard/index.js | |
index 4b62821..043a06d 100644 | |
--- a/src/amo/components/AddonReviewCard/index.js | |
+++ b/src/amo/components/AddonReviewCard/index.js | |
@@ -9,6 +9,7 @@ import { compose } from 'redux'; | |
import AddonReview from 'amo/components/AddonReview'; | |
import AddonReviewManager from 'amo/components/AddonReviewManager'; | |
import FlagReviewMenu from 'amo/components/FlagReviewMenu'; | |
+import Link from 'amo/components/Link'; | |
import { ADDONS_EDIT } from 'core/constants'; | |
import { withErrorHandler } from 'core/errorHandler'; | |
import translate from 'core/i18n/translate'; | |
@@ -317,6 +318,14 @@ export class AddonReviewCardBase extends React.Component<InternalProps> { | |
</span> | |
); | |
} | |
+ byLine = ( | |
+ <Link | |
+ title={i18n.gettext('Go to this review')} | |
+ to={`/addon/${review.addonSlug}/reviews/${review.id}/`} | |
+ > | |
+ {byLine} | |
+ </Link> | |
+ ); | |
} else { | |
byLine = <LoadingText />; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment