fix(client): update report user verbiage and link (#38954)

This commit is contained in:
matbub
2020-06-01 06:07:24 -07:00
committed by GitHub
parent 727ae4b932
commit 4af28cf12c
4 changed files with 6 additions and 4 deletions

View File

@ -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.`,

View File

@ -196,7 +196,9 @@ function Profile({ user, isSessionUser, navigate }) {
{!isLocked || isSessionUser ? renderProfile(user) : null}
{isSessionUser ? null : (
<Row className='text-center'>
<Link to={`/user/${username}/report-user`}>Report This User</Link>
<Link to={`/user/${username}/report-user`}>
Flag This User's Account for Abuse
</Link>
</Row>
)}
<Spacer />

View File

@ -68,7 +68,7 @@ describe('<Profile/>', () => {
it('renders the report button on another persons profile', () => {
const { getByText } = render(<Profile {...notMyProfileProps} />);
expect(getByText('Report This User')).toHaveAttribute(
expect(getByText("Flag This User's Account for Abuse")).toHaveAttribute(
'href',
'/user/string/report-user'
);

View File

@ -146,7 +146,7 @@ exports[`<Profile/> renders correctly 1`] = `
<a
href="/user/string/report-user"
>
Report This User
Flag This User's Account for Abuse
</a>
</div>
<div