mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2026-04-22 06:26:19 +00:00
Fix remaining dependencies from shlink-web-component into main app
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user