From c276e006ff3c3a7b767b02dbbdf170147ad843bd Mon Sep 17 00:00:00 2001 From: tomlum Date: Wed, 12 Jul 2023 17:01:45 -0400 Subject: [PATCH] updates design and fixes redux issues --- src/redux/session.js | 1 + src/views/bad-username-splash/bad-username-splash.jsx | 5 ++++- src/views/bad-username-splash/bad-username-splash.scss | 4 ++++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/redux/session.js b/src/redux/session.js index f7193d808..2986d19cc 100644 --- a/src/redux/session.js +++ b/src/redux/session.js @@ -158,6 +158,7 @@ module.exports.selectIsLoggedIn = state => !!get(state, ['session', 'session', ' module.exports.selectUsername = state => get(state, ['session', 'session', 'user', 'username'], null); module.exports.selectToken = state => get(state, ['session', 'session', 'user', 'token'], null); module.exports.selectIsAdmin = state => get(state, ['session', 'session', 'permissions', 'admin'], false); +module.exports.selectBannedUser = state => get(state, ['session', 'session', 'user'], false); module.exports.selectIsSocial = state => get(state, ['session', 'session', 'permissions', 'social'], false); module.exports.selectIsEducator = state => get(state, ['session', 'session', 'permissions', 'educator'], false); module.exports.selectProjectCommentsGloballyEnabled = state => diff --git a/src/views/bad-username-splash/bad-username-splash.jsx b/src/views/bad-username-splash/bad-username-splash.jsx index 170c9a499..98c568e2b 100644 --- a/src/views/bad-username-splash/bad-username-splash.jsx +++ b/src/views/bad-username-splash/bad-username-splash.jsx @@ -148,10 +148,12 @@ const BannedSplash = ({hasSession, user, adminMessages, getAdminMessages}) => { nextButton={} >
+ Create a new username { setFieldValue('canValidate', true).then(validateForm()); }} /> + Password