fix(client): update report user verbiage and link (#38954)
This commit is contained in:
		@@ -216,7 +216,7 @@ function createPostReportUserProfile(app) {
 | 
				
			|||||||
    return Email.send$(
 | 
					    return Email.send$(
 | 
				
			||||||
      {
 | 
					      {
 | 
				
			||||||
        type: 'email',
 | 
					        type: 'email',
 | 
				
			||||||
        to: 'team@freecodecamp.org',
 | 
					        to: 'support@freecodecamp.org',
 | 
				
			||||||
        cc: user.email,
 | 
					        cc: user.email,
 | 
				
			||||||
        from: 'team@freecodecamp.org',
 | 
					        from: 'team@freecodecamp.org',
 | 
				
			||||||
        subject: `Abuse Report : Reporting ${username}'s profile.`,
 | 
					        subject: `Abuse Report : Reporting ${username}'s profile.`,
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -196,7 +196,9 @@ function Profile({ user, isSessionUser, navigate }) {
 | 
				
			|||||||
        {!isLocked || isSessionUser ? renderProfile(user) : null}
 | 
					        {!isLocked || isSessionUser ? renderProfile(user) : null}
 | 
				
			||||||
        {isSessionUser ? null : (
 | 
					        {isSessionUser ? null : (
 | 
				
			||||||
          <Row className='text-center'>
 | 
					          <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>
 | 
					          </Row>
 | 
				
			||||||
        )}
 | 
					        )}
 | 
				
			||||||
        <Spacer />
 | 
					        <Spacer />
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -68,7 +68,7 @@ describe('<Profile/>', () => {
 | 
				
			|||||||
  it('renders the report button on another persons profile', () => {
 | 
					  it('renders the report button on another persons profile', () => {
 | 
				
			||||||
    const { getByText } = render(<Profile {...notMyProfileProps} />);
 | 
					    const { getByText } = render(<Profile {...notMyProfileProps} />);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    expect(getByText('Report This User')).toHaveAttribute(
 | 
					    expect(getByText("Flag This User's Account for Abuse")).toHaveAttribute(
 | 
				
			||||||
      'href',
 | 
					      'href',
 | 
				
			||||||
      '/user/string/report-user'
 | 
					      '/user/string/report-user'
 | 
				
			||||||
    );
 | 
					    );
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -146,7 +146,7 @@ exports[`<Profile/> renders correctly 1`] = `
 | 
				
			|||||||
      <a
 | 
					      <a
 | 
				
			||||||
        href="/user/string/report-user"
 | 
					        href="/user/string/report-user"
 | 
				
			||||||
      >
 | 
					      >
 | 
				
			||||||
        Report This User
 | 
					        Flag This User's Account for Abuse
 | 
				
			||||||
      </a>
 | 
					      </a>
 | 
				
			||||||
    </div>
 | 
					    </div>
 | 
				
			||||||
    <div
 | 
					    <div
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user