fix(client): update report user verbiage and link (#38954)
This commit is contained in:
@ -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.`,
|
||||
|
@ -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 />
|
||||
|
@ -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'
|
||||
);
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user