adapt route proptype for url params with latest changes in router

This commit is contained in:
nklhrstv 2020-03-28 13:06:06 +02:00
parent 21e50d323a
commit f64a633f25
4 changed files with 4 additions and 4 deletions

View file

@ -229,7 +229,7 @@ const Addons = ({ urlParams, queryParams }) => {
};
Addons.propTypes = {
urlParams: PropTypes.exact({
urlParams: PropTypes.shape({
transportUrl: PropTypes.string,
catalogId: PropTypes.string,
type: PropTypes.string

View file

@ -207,7 +207,7 @@ const Discover = ({ urlParams, queryParams }) => {
};
Discover.propTypes = {
urlParams: PropTypes.exact({
urlParams: PropTypes.shape({
transportUrl: PropTypes.string,
type: PropTypes.string,
catalogId: PropTypes.string

View file

@ -113,7 +113,7 @@ const MetaDetails = ({ urlParams }) => {
};
MetaDetails.propTypes = {
urlParams: PropTypes.exact({
urlParams: PropTypes.shape({
type: PropTypes.string,
id: PropTypes.string,
videoId: PropTypes.string

View file

@ -410,7 +410,7 @@ const Player = ({ urlParams }) => {
};
Player.propTypes = {
urlParams: PropTypes.exact({
urlParams: PropTypes.shape({
stream: PropTypes.string,
streamTransportUrl: PropTypes.string,
metaTransportUrl: PropTypes.string,