aboutsummaryrefslogtreecommitdiff
path: root/src/client
diff options
context:
space:
mode:
authorNoah Loomans <noahloomans@gmail.com>2018-02-02 16:00:15 +0100
committerNoah Loomans <noahloomans@gmail.com>2018-02-02 16:00:15 +0100
commitfeb7e197e691d39595d814e7ee59813b10ef4eca (patch)
tree6f272282cda2b3c6f16a7ec5bd04358037339bb9 /src/client
parent41f57d90be930fb0af7dace6a12ad5e47edbd0f6 (diff)
Explain origin of props
Diffstat (limited to 'src/client')
-rw-r--r--src/client/react/components/container/Results.js4
-rw-r--r--src/client/react/components/container/Search.js4
-rw-r--r--src/client/react/components/container/View.js4
-rw-r--r--src/client/react/components/container/WeekSelector.js1
-rw-r--r--src/client/react/components/page/User.js1
5 files changed, 14 insertions, 0 deletions
diff --git a/src/client/react/components/container/Results.js b/src/client/react/components/container/Results.js
index 3e8a7ec..68a090b 100644
--- a/src/client/react/components/container/Results.js
+++ b/src/client/react/components/container/Results.js
@@ -52,8 +52,12 @@ Results.propTypes = {
results: PropTypes.arrayOf(PropTypes.string).isRequired,
isExactMatch: PropTypes.bool.isRequired,
selectedResult: PropTypes.string,
+
+ // react-router
match: PropTypes.object.isRequired,
history: PropTypes.object.isRequired,
+
+ // redux
dispatch: PropTypes.func.isRequired,
};
diff --git a/src/client/react/components/container/Search.js b/src/client/react/components/container/Search.js
index cfddaac..b42699f 100644
--- a/src/client/react/components/container/Search.js
+++ b/src/client/react/components/container/Search.js
@@ -125,8 +125,12 @@ Search.propTypes = {
selectedResult: PropTypes.string,
isExactMatch: PropTypes.bool.isRequired,
searchText: PropTypes.string.isRequired,
+
+ // react-router
match: PropTypes.object.isRequired,
history: PropTypes.object.isRequired,
+
+ // redux
dispatch: PropTypes.func.isRequired,
};
diff --git a/src/client/react/components/container/View.js b/src/client/react/components/container/View.js
index 090f5c0..bd75c9c 100644
--- a/src/client/react/components/container/View.js
+++ b/src/client/react/components/container/View.js
@@ -38,8 +38,12 @@ View.propTypes = {
state: PropTypes.string.isRequired,
htmlStr: PropTypes.string,
}))).isRequired,
+
+ // react-router
match: PropTypes.object.isRequired,
location: PropTypes.object.isRequired,
+
+ // redux
dispatch: PropTypes.func.isRequired,
};
diff --git a/src/client/react/components/container/WeekSelector.js b/src/client/react/components/container/WeekSelector.js
index c6c1518..5977c98 100644
--- a/src/client/react/components/container/WeekSelector.js
+++ b/src/client/react/components/container/WeekSelector.js
@@ -33,6 +33,7 @@ const WeekSelector = ({ location, history }) => {
};
WeekSelector.propTypes = {
+ // react-router
location: PropTypes.object.isRequired,
history: PropTypes.object.isRequired,
};
diff --git a/src/client/react/components/page/User.js b/src/client/react/components/page/User.js
index 202d998..ae1dcc2 100644
--- a/src/client/react/components/page/User.js
+++ b/src/client/react/components/page/User.js
@@ -32,6 +32,7 @@ const UserPage = ({ match }) => {
};
UserPage.propTypes = {
+ // react-router
match: PropTypes.object.isRequired,
};