Moved DateInput from common to utils

This commit is contained in:
Alejandro Celaya 2018-11-01 09:05:20 +01:00
parent 756e0c637e
commit cccf57a35a
6 changed files with 9 additions and 9 deletions

View file

@ -5,7 +5,7 @@ import { assoc, dissoc, isNil, pick, pipe, replace, trim } from 'ramda';
import React from 'react'; import React from 'react';
import { connect } from 'react-redux'; import { connect } from 'react-redux';
import { Collapse } from 'reactstrap'; import { Collapse } from 'reactstrap';
import DateInput from '../common/DateInput'; import DateInput from '../utils/DateInput';
import TagsSelector from '../tags/helpers/TagsSelector'; import TagsSelector from '../tags/helpers/TagsSelector';
import CreateShortUrlResult from './helpers/CreateShortUrlResult'; import CreateShortUrlResult from './helpers/CreateShortUrlResult';
import { createShortUrl, resetCreateShortUrl } from './reducers/shortUrlCreation'; import { createShortUrl, resetCreateShortUrl } from './reducers/shortUrlCreation';

View file

@ -1,8 +1,8 @@
import calendarIcon from '@fortawesome/fontawesome-free-regular/faCalendarAlt';
import FontAwesomeIcon from '@fortawesome/react-fontawesome';
import React from 'react'; import React from 'react';
import DatePicker from 'react-datepicker';
import { isNil } from 'ramda'; import { isNil } from 'ramda';
import DatePicker from 'react-datepicker';
import FontAwesomeIcon from '@fortawesome/react-fontawesome';
import calendarIcon from '@fortawesome/fontawesome-free-regular/faCalendarAlt';
import './DateInput.scss'; import './DateInput.scss';
export default class DateInput extends React.Component { export default class DateInput extends React.Component {

View file

@ -1,5 +1,5 @@
@import '../utils/mixins/vertical-align'; @import './mixins/vertical-align';
@import '../utils/base'; @import './base';
.date-input-container { .date-input-container {
position: relative; position: relative;

View file

@ -5,7 +5,7 @@ import React from 'react';
import { connect } from 'react-redux'; import { connect } from 'react-redux';
import { Card } from 'reactstrap'; import { Card } from 'reactstrap';
import PropTypes from 'prop-types'; import PropTypes from 'prop-types';
import DateInput from '../common/DateInput'; import DateInput from '../utils/DateInput';
import MutedMessage from '../utils/MuttedMessage'; import MutedMessage from '../utils/MuttedMessage';
import SortableBarGraph from './SortableBarGraph'; import SortableBarGraph from './SortableBarGraph';
import { getShortUrlVisits, shortUrlVisitsType } from './reducers/shortUrlVisits'; import { getShortUrlVisits, shortUrlVisitsType } from './reducers/shortUrlVisits';

View file

@ -2,7 +2,7 @@ import React from 'react';
import { shallow } from 'enzyme'; import { shallow } from 'enzyme';
import FontAwesomeIcon from '@fortawesome/react-fontawesome'; import FontAwesomeIcon from '@fortawesome/react-fontawesome';
import moment from 'moment'; import moment from 'moment';
import DateInput from '../../src/common/DateInput'; import DateInput from '../../src/utils/DateInput';
describe('<DateInput />', () => { describe('<DateInput />', () => {
let wrapped; let wrapped;

View file

@ -6,7 +6,7 @@ import * as sinon from 'sinon';
import { ShortUrlsVisitsComponent as ShortUrlsVisits } from '../../src/visits/ShortUrlVisits'; import { ShortUrlsVisitsComponent as ShortUrlsVisits } from '../../src/visits/ShortUrlVisits';
import MutedMessage from '../../src/utils/MuttedMessage'; import MutedMessage from '../../src/utils/MuttedMessage';
import GraphCard from '../../src/visits/GraphCard'; import GraphCard from '../../src/visits/GraphCard';
import DateInput from '../../src/common/DateInput'; import DateInput from '../../src/utils/DateInput';
import SortableBarGraph from '../../src/visits/SortableBarGraph'; import SortableBarGraph from '../../src/visits/SortableBarGraph';
describe('<ShortUrlVisits />', () => { describe('<ShortUrlVisits />', () => {