Moved types from old shortUrlsListParams reducer, to the data index file

This commit is contained in:
Alejandro Celaya
2021-12-24 13:47:27 +01:00
parent 275aee4de2
commit d4356ba6e6
9 changed files with 20 additions and 23 deletions

View File

@@ -1,13 +0,0 @@
import { Order } from '../../utils/helpers/ordering';
export const SORTABLE_FIELDS = {
dateCreated: 'Created at',
shortCode: 'Short URL',
longUrl: 'Long URL',
title: 'Title',
visits: 'Visits',
};
export type OrderableFields = keyof typeof SORTABLE_FIELDS;
export type ShortUrlsOrder = Order<OrderableFields>;