mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2026-04-11 09:06:20 +00:00
Move date components and helpers to shlink-web-component
This commit is contained in:
@@ -4,8 +4,8 @@ import { fromPartial } from '@total-typescript/shoehorn';
|
||||
import { formatISO } from 'date-fns';
|
||||
import type { Mode } from '../../shlink-web-component/short-urls/ShortUrlForm';
|
||||
import { ShortUrlForm as createShortUrlForm } from '../../shlink-web-component/short-urls/ShortUrlForm';
|
||||
import { parseDate } from '../../shlink-web-component/utils/dates/helpers/date';
|
||||
import type { ReachableServer, SelectedServer } from '../../src/servers/data';
|
||||
import { parseDate } from '../../src/utils/helpers/date';
|
||||
import type { OptionalString } from '../../src/utils/utils';
|
||||
import { renderWithEvents } from '../__helpers__/setUpTest';
|
||||
|
||||
|
||||
@@ -3,9 +3,9 @@ import { fromPartial } from '@total-typescript/shoehorn';
|
||||
import { endOfDay, formatISO, startOfDay } from 'date-fns';
|
||||
import { MemoryRouter, useLocation, useNavigate } from 'react-router-dom';
|
||||
import { ShortUrlsFilteringBar as filteringBarCreator } from '../../shlink-web-component/short-urls/ShortUrlsFilteringBar';
|
||||
import { formatDate } from '../../shlink-web-component/utils/dates/helpers/date';
|
||||
import type { DateRange } from '../../shlink-web-component/utils/dates/helpers/dateIntervals';
|
||||
import type { ReachableServer, SelectedServer } from '../../src/servers/data';
|
||||
import { formatDate } from '../../src/utils/helpers/date';
|
||||
import type { DateRange } from '../../src/utils/helpers/dateIntervals';
|
||||
import { renderWithEvents } from '../__helpers__/setUpTest';
|
||||
|
||||
vi.mock('react-router-dom', async () => ({
|
||||
|
||||
@@ -5,9 +5,9 @@ import { last } from 'ramda';
|
||||
import { MemoryRouter, useLocation } from 'react-router-dom';
|
||||
import type { ShortUrl, ShortUrlMeta } from '../../../shlink-web-component/short-urls/data';
|
||||
import { ShortUrlsRow as createShortUrlsRow } from '../../../shlink-web-component/short-urls/helpers/ShortUrlsRow';
|
||||
import { now, parseDate } from '../../../shlink-web-component/utils/dates/helpers/date';
|
||||
import type { ReachableServer } from '../../../src/servers/data';
|
||||
import type { Settings } from '../../../src/settings/reducers/settings';
|
||||
import { now, parseDate } from '../../../src/utils/helpers/date';
|
||||
import type { TimeoutToggle } from '../../../src/utils/helpers/hooks';
|
||||
import type { OptionalString } from '../../../src/utils/utils';
|
||||
import { renderWithEvents } from '../../__helpers__/setUpTest';
|
||||
|
||||
Reference in New Issue
Block a user