Extracted visits count component to reuse it in other places

This commit is contained in:
Alejandro Celaya
2020-01-11 19:58:04 +01:00
parent f2cb30409a
commit 3f2162fe62
6 changed files with 96 additions and 67 deletions

View File

@@ -14,6 +14,12 @@ export const shortUrlType = PropTypes.shape({
shortCode: PropTypes.string,
shortUrl: PropTypes.string,
longUrl: PropTypes.string,
visitsCount: PropTypes.number,
meta: PropTypes.shape({
validSince: PropTypes.string,
validUntil: PropTypes.string,
maxVisits: PropTypes.number,
}),
tags: PropTypes.arrayOf(PropTypes.string),
});