Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
constructor(...args) {
super(...args);
this.props.init();
this.state = {};
Moment.locale(this.props.currentLocale);
momentLocalizer();
}
constructor(...args) {
super(...args);
this.props.init();
this.state = {};
Moment.locale(this.props.currentLocale);
momentLocalizer();
}
import moment from 'moment';
import momentLocaliser from 'react-widgets-moment';
import { DateTimePicker, DropdownList } from 'react-widgets';
import 'react-widgets/dist/css/react-widgets.css';
import {
Label,
Input,
FormFeedback,
FormGroup,
CustomInput,
InputGroup,
InputGroupAddon,
} from 'reactstrap';
import './style.scss';
momentLocaliser(moment);
export const Validations = ({
error,
validationError,
warning,
}) => (
<>
{validationError || error}
{(warning && <span>{warning}</span>)}
);
const renderSwitch = (props) => {
const {
input,
id,
constructor(props) {
super(props);
Moment.locale(this.props.currentLocale);
momentLocalizer();
this.state = {
open: false,
};
}
componentDidMount() {
constructor(props) {
super(props);
momentLocalizer(moment);
const defaultFilter = filterTypes[DEFAULT_FILTER_KEY];
let currentUniverse = "all";
let currentUniversePrefix = "all";
if (this.props.origin === "universe") {
currentUniverse = this.props.universe.currentUniverse.data;
currentUniversePrefix = currentUniverse.universeDetails.nodePrefix;
}
this.state = {
showDatePicker: false,
filterLabel: defaultFilter.label,
filterType: defaultFilter.type,
filterValue: defaultFilter.value,
currentSelectedUniverse: currentUniverse,
endMoment: moment(),
startMoment: moment().subtract("1", "hours"),
nodePrefix: currentUniversePrefix,