Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
var api = require('adhocracy4').api
var Paragraph = require('./Paragraph.jsx')
var PropTypes = require('prop-types')
var React = require('react')
var ReactDOM = require('react-dom')
var update = require('immutability-helper')
var django = require('django')
var FlipMove = require('react-flip-move').default
class ParagraphBox extends React.Component {
constructor (props) {
super(props)
this.state = {
id: this.props.id,
name: this.props.name,
paragraphs: this.props.paragraphs,
nameErrors: [],
paragraphsErrors: [],
maxParagraphKey: 0,
successMessage: ''
}
}