Fixed shape types not properly defined as shapes but as plane objects

This commit is contained in:
Alejandro Celaya
2018-08-26 19:19:45 +02:00
parent 3569202a62
commit 2fdc7a0ff0
3 changed files with 6 additions and 6 deletions

View File

@@ -3,11 +3,11 @@ import { LIST_SHORT_URLS } from './shortUrlsList';
export const RESET_SHORT_URL_PARAMS = 'shlink/shortUrlsListParams/RESET_SHORT_URL_PARAMS';
export const shortUrlsListParamsType = {
export const shortUrlsListParamsType = PropTypes.shape({
page: PropTypes.string,
tags: PropTypes.arrayOf(PropTypes.string),
searchTerm: PropTypes.string,
};
});
const defaultState = { page: '1' };