mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2026-05-31 17:46:17 +00:00
Moved date-time related utils to the proper folder
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
@import './mixins/vertical-align';
|
||||
@import './base';
|
||||
@import '../mixins/vertical-align';
|
||||
@import '../base';
|
||||
|
||||
.date-input-container {
|
||||
position: relative;
|
||||
@@ -4,7 +4,7 @@ import DatePicker, { ReactDatePickerProps } from 'react-datepicker';
|
||||
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
||||
import { faCalendarAlt as calendarIcon } from '@fortawesome/free-regular-svg-icons';
|
||||
import classNames from 'classnames';
|
||||
import { STANDARD_DATE_FORMAT } from './helpers/date';
|
||||
import { STANDARD_DATE_FORMAT } from '../helpers/date';
|
||||
import './DateInput.scss';
|
||||
|
||||
export type DateInputProps = ReactDatePickerProps;
|
||||
@@ -1,5 +1,5 @@
|
||||
import { endOfDay } from 'date-fns';
|
||||
import { DateInput } from '../DateInput';
|
||||
import { DateInput } from './DateInput';
|
||||
import { DateRange } from './types';
|
||||
|
||||
interface DateRangeRowProps extends DateRange {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { ReactDatePickerProps } from 'react-datepicker';
|
||||
import { FC } from 'react';
|
||||
import { DateInput } from '../DateInput';
|
||||
import { DateInput } from './DateInput';
|
||||
import { STANDARD_DATE_AND_TIME_FORMAT } from '../helpers/date';
|
||||
|
||||
export type DateTimeInputProps = Omit<ReactDatePickerProps, 'showTimeSelect' | 'dateFormat' | 'timeIntervals'>;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { parseISO, format as formatDate, getUnixTime, formatDistance } from 'date-fns';
|
||||
import { isDateObject, STANDARD_DATE_AND_TIME_FORMAT } from './helpers/date';
|
||||
import { isDateObject, STANDARD_DATE_AND_TIME_FORMAT } from '../helpers/date';
|
||||
|
||||
export interface TimeProps {
|
||||
date: Date | string;
|
||||
Reference in New Issue
Block a user