From 4af28cf12c47e65d89d53c25987a1f4201a30fe4 Mon Sep 17 00:00:00 2001 From: matbub <53072963+hi-matbub@users.noreply.github.com> Date: Mon, 1 Jun 2020 06:07:24 -0700 Subject: [PATCH] fix(client): update report user verbiage and link (#38954) --- api-server/server/boot/user.js | 2 +- client/src/components/profile/Profile.js | 4 +++- client/src/components/profile/Profile.test.js | 2 +- .../src/components/profile/__snapshots__/Profile.test.js.snap | 2 +- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/api-server/server/boot/user.js b/api-server/server/boot/user.js index 3e6e87f73a..a0c39f5d02 100644 --- a/api-server/server/boot/user.js +++ b/api-server/server/boot/user.js @@ -216,7 +216,7 @@ function createPostReportUserProfile(app) { return Email.send$( { type: 'email', - to: 'team@freecodecamp.org', + to: 'support@freecodecamp.org', cc: user.email, from: 'team@freecodecamp.org', subject: `Abuse Report : Reporting ${username}'s profile.`, diff --git a/client/src/components/profile/Profile.js b/client/src/components/profile/Profile.js index ff89973bf6..82071e7a1a 100644 --- a/client/src/components/profile/Profile.js +++ b/client/src/components/profile/Profile.js @@ -196,7 +196,9 @@ function Profile({ user, isSessionUser, navigate }) { {!isLocked || isSessionUser ? renderProfile(user) : null} {isSessionUser ? null : ( - Report This User + + Flag This User's Account for Abuse + )} diff --git a/client/src/components/profile/Profile.test.js b/client/src/components/profile/Profile.test.js index 40333ffc1b..7d2a11160a 100644 --- a/client/src/components/profile/Profile.test.js +++ b/client/src/components/profile/Profile.test.js @@ -68,7 +68,7 @@ describe('', () => { it('renders the report button on another persons profile', () => { const { getByText } = render(); - expect(getByText('Report This User')).toHaveAttribute( + expect(getByText("Flag This User's Account for Abuse")).toHaveAttribute( 'href', '/user/string/report-user' ); diff --git a/client/src/components/profile/__snapshots__/Profile.test.js.snap b/client/src/components/profile/__snapshots__/Profile.test.js.snap index 49621351f0..dcdf51ac02 100644 --- a/client/src/components/profile/__snapshots__/Profile.test.js.snap +++ b/client/src/components/profile/__snapshots__/Profile.test.js.snap @@ -146,7 +146,7 @@ exports[` renders correctly 1`] = ` - Report This User + Flag This User's Account for Abuse