import React from 'react' import * as core from 'core' import * as antd from 'antd' import * as Icons from 'components/Icons' import styles from './modals.less'; import classnames from 'classnames' const isMobile = localStorage.getItem('mobile_src') class __Model_postreport extends React.PureComponent { state = { step: 1 } end(){ if(this.props.id){ const payload = { post_id: this.props.id } core.comty_post.__report((err, res) => { if (err) { return false } core.notify.info('This post has been reported successfully, our team will review it and inform you about problem resolution ...') core.RenderFeed.RefreshFeed() core.RenderFeed.goToElement(this.props.id) }, payload) } setTimeout(() => { core.SwapMode.close() }, 500) } next(){ let a = this.state.step if(a<3)a++ this.setState({step: a }) } status(i){ const a = this.state.step if (a==i) return 'process' if (a>i) return 'finish' if (a

Report an post

This tool is intended for the community in a public way to help identify problematic or abusive content and for legitimate purposes.


To ensure the proper use of this tool, before proceeding, you must understand the following:

I understand and agree that my complaint may be sent to the party that posted the content in question. I understand that the abuse of this tool may have consequences for my account

{this.state.term_1 && this.state.term_2? this.next()} >Next : null} ) case 2: return(

For this report or complaint to be fair, make sure that the reason is for the following reasons:


- Harmful content or hate speech

- Violent or repulsive content

- Misleading advertising or spam

- Illegal activities

- Sexual content

- Or any other activity that violates the terms and conditions of use

I am sure and understand that the reason for this report is included in the above list.

{this.state.term_3? this.next()} >Next : null}
) case 3: return (

Given the above circumstances, to send this report or report please confirm that you understand and are following that you want to carry out this action

I am sure of what I do and I want to send this complaint or report

{this.state.term_confirm? this.end()} >Send report : null}
) default: return null } } validate = { term_1: (e) =>{this.setState({ term_1: e.target.checked })}, term_2: (e) =>{this.setState({ term_2: e.target.checked })}, term_3: (e) =>{this.setState({ term_3: e.target.checked })}, confirm: (e) =>{this.setState({ term_confirm: e.target.checked })} } render(){ return(
} /> } /> } />
{this.renderStep()}
) } } export const app_modals = { report_post: (post_id) => { antd.Modal.confirm({ title: 'Report an post', icon: , content: 'It seems that you want to report this post, first of all it is necessary that you take into account that this tool is only intended for serious cases and we need you to comply with some questions to be able to report this post and to guarantee the quality of service ...', onOk() { return core.SwapMode.openFragment(<__Model_postreport id={post_id} />) }, onCancel() { return false }, }); } }