mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2025-02-17 00:21:20 -05:00
Add vpn_required to defaults in various pages.
This commit is contained in:
parent
12438d8360
commit
21a795cd0b
6 changed files with 6 additions and 0 deletions
|
@ -65,6 +65,7 @@ module.exports.setStatus = status => ({
|
|||
});
|
||||
|
||||
const handleSessionResponse = (dispatch, body) => {
|
||||
console.log(window.location.pathname);
|
||||
if (typeof body === 'undefined') return dispatch(module.exports.setSessionError('No session content'));
|
||||
if (
|
||||
body.user &&
|
||||
|
|
|
@ -160,6 +160,7 @@ Messages.propTypes = {
|
|||
user: PropTypes.shape({
|
||||
id: PropTypes.number,
|
||||
banned: PropTypes.bool,
|
||||
vpn_required: PropTypes.bool,
|
||||
username: PropTypes.string,
|
||||
token: PropTypes.string,
|
||||
thumbnailUrl: PropTypes.string,
|
||||
|
|
|
@ -192,6 +192,7 @@ CommentMessage.propTypes = {
|
|||
user: PropTypes.shape({
|
||||
id: PropTypes.number,
|
||||
banned: PropTypes.bool,
|
||||
vpn_required: PropTypes.bool,
|
||||
username: PropTypes.string,
|
||||
token: PropTypes.string,
|
||||
thumbnailUrl: PropTypes.string,
|
||||
|
|
|
@ -384,6 +384,7 @@ MessagesPresentation.propTypes = {
|
|||
user: PropTypes.shape({
|
||||
id: PropTypes.number,
|
||||
banned: PropTypes.bool,
|
||||
vpn_required: PropTypes.bool,
|
||||
token: PropTypes.string,
|
||||
thumbnailUrl: PropTypes.string,
|
||||
dateJoined: PropTypes.string,
|
||||
|
|
|
@ -982,6 +982,7 @@ Preview.propTypes = {
|
|||
user: PropTypes.shape({
|
||||
id: PropTypes.number,
|
||||
banned: PropTypes.bool,
|
||||
vpn_required: PropTypes.bool,
|
||||
username: PropTypes.string,
|
||||
token: PropTypes.string,
|
||||
thumbnailUrl: PropTypes.string,
|
||||
|
|
|
@ -246,6 +246,7 @@ Splash.propTypes = {
|
|||
user: PropTypes.shape({
|
||||
id: PropTypes.number,
|
||||
banned: PropTypes.bool,
|
||||
vpn_required: PropTypes.bool,
|
||||
username: PropTypes.string,
|
||||
token: PropTypes.string,
|
||||
thumbnailUrl: PropTypes.string,
|
||||
|
|
Loading…
Reference in a new issue