mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2024-12-23 09:30:31 +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';
|
const RESET_CREATE_SHORT_URL = 'shlink/createShortUrl/RESET_CREATE_SHORT_URL';
|
||||||
/* eslint-enable padding-line-between-statements, newline-after-var */
|
/* eslint-enable padding-line-between-statements, newline-after-var */
|
||||||
|
|
||||||
export const createShortUrlResultType = {
|
export const createShortUrlResultType = PropTypes.shape({
|
||||||
result: PropTypes.shape({
|
result: PropTypes.shape({
|
||||||
shortUrl: PropTypes.string,
|
shortUrl: PropTypes.string,
|
||||||
}),
|
}),
|
||||||
saving: PropTypes.bool,
|
saving: PropTypes.bool,
|
||||||
error: PropTypes.bool,
|
error: PropTypes.bool,
|
||||||
};
|
});
|
||||||
|
|
||||||
const defaultState = {
|
const defaultState = {
|
||||||
result: null,
|
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';
|
const GET_SHORT_URL_VISITS = 'shlink/shortUrlVisits/GET_SHORT_URL_VISITS';
|
||||||
/* eslint-enable padding-line-between-statements, newline-after-var */
|
/* eslint-enable padding-line-between-statements, newline-after-var */
|
||||||
|
|
||||||
export const shortUrlVisitsType = {
|
export const shortUrlVisitsType = PropTypes.shape({
|
||||||
shortUrl: shortUrlType,
|
shortUrl: shortUrlType,
|
||||||
visits: PropTypes.array,
|
visits: PropTypes.array,
|
||||||
loading: PropTypes.bool,
|
loading: PropTypes.bool,
|
||||||
error: PropTypes.bool,
|
error: PropTypes.bool,
|
||||||
};
|
});
|
||||||
|
|
||||||
const initialState = {
|
const initialState = {
|
||||||
shortUrl: {},
|
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 RESET_SHORT_URL_PARAMS = 'shlink/shortUrlsListParams/RESET_SHORT_URL_PARAMS';
|
||||||
|
|
||||||
export const shortUrlsListParamsType = {
|
export const shortUrlsListParamsType = PropTypes.shape({
|
||||||
page: PropTypes.string,
|
page: PropTypes.string,
|
||||||
tags: PropTypes.arrayOf(PropTypes.string),
|
tags: PropTypes.arrayOf(PropTypes.string),
|
||||||
searchTerm: PropTypes.string,
|
searchTerm: PropTypes.string,
|
||||||
};
|
});
|
||||||
|
|
||||||
const defaultState = { page: '1' };
|
const defaultState = { page: '1' };
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue