Add vpn_required to defaults in various pages.

This commit is contained in:
Colby Gutierrez-Kraybill 2023-01-10 10:53:29 -05:00
parent 12438d8360
commit 21a795cd0b
6 changed files with 6 additions and 0 deletions

View file

@ -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 &&

View file

@ -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,

View file

@ -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,

View file

@ -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,

View file

@ -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,

View file

@ -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,