Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import ReactMapboxGl, { Popup } from 'react-mapbox-gl';
import { connect } from 'react-redux';
import { getLocations } from '../actions/index';
import { StateRoot } from '../reducers/index';
import { Stations } from './stations';
import styled from 'styled-components';
import { getDeepLink } from '../link';
import StationLabel from './station-label';
import Button from './button';
import * as moment from 'moment';
// tslint:disable-next-line:no-var-requires
import './style.css';
// tslint:disable-next-line:no-var-requires
// const data = require('../data/style.json');
// tslint:disable-next-line:no-var-requires
const DatePicker = require('react-datepicker').default;
// tslint:disable-next-line:no-submodule-imports
import 'react-datepicker/dist/react-datepicker.css';
const NavBar = styled.div`
position: absolute;
left: 0;
right: 0;
top: 0;
display: flex;
min-height: 120px;
justify-content: center;
align-items: center;
`;
const Map = ReactMapboxGl({
accessToken:
import * as PlusIcon from 'material-design-icons/content/svg/production/ic_add_circle_outline_24px.svg';
import * as DateIcon from 'material-design-icons/action/svg/production/ic_event_24px.svg';
// Libs
import * as React from 'react';
try {
var DatePicker = require('react-datepicker').default;
} catch {
DatePicker = undefined;
}
// Misc
import OpeningHoursUtil from '../utils/OpeningHoursUtil';
import {
OpeningHoursDayObj,
OpeningHoursDay,
} from '../openingHoursDay/OpeningHoursDay';
import {
BaseInputProps,
BaseInputState,
BaseInput,
} from '../../base/input/BaseInput';
import { Button } from '../../button/Button';