mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2024-12-23 01:20:24 +03:00
Fixed shape types not properly defined as shapes but as plane objects
This commit is contained in:
parent
3569202a62
commit
2fdc7a0ff0
3 changed files with 6 additions and 6 deletions
|
@ -9,13 +9,13 @@ const CREATE_SHORT_URL = 'shlink/createShortUrl/CREATE_SHORT_URL';
|
|||
const RESET_CREATE_SHORT_URL = 'shlink/createShortUrl/RESET_CREATE_SHORT_URL';
|
||||
/* eslint-enable padding-line-between-statements, newline-after-var */
|
||||
|
||||
export const createShortUrlResultType = {
|
||||
export const createShortUrlResultType = PropTypes.shape({
|
||||
result: PropTypes.shape({
|
||||
shortUrl: PropTypes.string,
|
||||
}),
|
||||
saving: PropTypes.bool,
|
||||
error: PropTypes.bool,
|
||||
};
|
||||
});
|
||||
|
||||
const defaultState = {
|
||||
result: null,
|
||||
|
|
|
@ -9,12 +9,12 @@ const GET_SHORT_URL_VISITS_ERROR = 'shlink/shortUrlVisits/GET_SHORT_URL_VISITS_E
|
|||
const GET_SHORT_URL_VISITS = 'shlink/shortUrlVisits/GET_SHORT_URL_VISITS';
|
||||
/* eslint-enable padding-line-between-statements, newline-after-var */
|
||||
|
||||
export const shortUrlVisitsType = {
|
||||
export const shortUrlVisitsType = PropTypes.shape({
|
||||
shortUrl: shortUrlType,
|
||||
visits: PropTypes.array,
|
||||
loading: PropTypes.bool,
|
||||
error: PropTypes.bool,
|
||||
};
|
||||
});
|
||||
|
||||
const initialState = {
|
||||
shortUrl: {},
|
||||
|
|
|
@ -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' };
|
||||
|
||||
|
|
Loading…
Reference in a new issue