Fix remaining dependencies from shlink-web-component into main app

This commit is contained in:
Alejandro Celaya
2023-08-06 17:19:59 +02:00
parent 75fed53ba4
commit c3b6ce34ba
11 changed files with 15 additions and 14 deletions

View File

@@ -4,7 +4,6 @@ import { pipe } from 'ramda';
import { useEffect, useState } from 'react';
import { useLocation, useParams } from 'react-router-dom';
import { Card } from 'reactstrap';
import { DEFAULT_SHORT_URLS_ORDERING } from '../../../src/settings/reducers/settings';
import type { ShlinkShortUrlsListParams, ShlinkShortUrlsOrder } from '../api-contract';
import { boundToMercureHub } from '../mercure/helpers/boundToMercureHub';
import { Topics } from '../mercure/helpers/Topics';
@@ -23,6 +22,11 @@ interface ShortUrlsListProps {
listShortUrls: (params: ShlinkShortUrlsListParams) => void;
}
const DEFAULT_SHORT_URLS_ORDERING: ShortUrlsOrder = {
field: 'dateCreated',
dir: 'DESC',
};
export const ShortUrlsList = (
ShortUrlsTable: ShortUrlsTableType,
ShortUrlsFilteringBar: ShortUrlsFilteringBarType,

View File

@@ -1,9 +1,9 @@
import type { FC } from 'react';
import { useEffect, useRef } from 'react';
import { ExternalLink } from 'react-external-link';
import type { TimeoutToggle } from '../../../../src/utils/helpers/hooks';
import { CopyToClipboardIcon } from '../../utils/components/CopyToClipboardIcon';
import { Time } from '../../utils/dates/Time';
import type { TimeoutToggle } from '../../utils/helpers/hooks';
import type { ColorGenerator } from '../../utils/services/ColorGenerator';
import { useSetting } from '../../utils/settings';
import type { ShortUrl } from '../data';