updates design and fixes redux issues

This commit is contained in:
tomlum 2023-07-12 17:01:45 -04:00
parent 73da26aa5d
commit c276e006ff
3 changed files with 9 additions and 1 deletions

View file

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

View file

@ -148,10 +148,12 @@ const BannedSplash = ({hasSession, user, adminMessages, getAdminMessages}) => {
nextButton={<FormattedMessage id="renameAccount.change" />}
>
<div>
<b>Create a new username</b>
<FormikInput
autoCapitalize="off"
autoComplete="off"
autoCorrect="off"
className={'join-flow-input mt5'}
error={errors.newUsername}
id="newUsername"
name="newUsername"
@ -187,11 +189,12 @@ const BannedSplash = ({hasSession, user, adminMessages, getAdminMessages}) => {
setFieldValue('canValidate', true).then(validateForm());
}}
/>
<b>Password</b>
<FormikInput
autoCapitalize="off"
autoComplete="off"
autoCorrect="off"
className={'join-flow-input'}
className={'join-flow-input mt5'}
id="password"
name="password"
placeholder={'Enter your password'}

View file

@ -123,3 +123,7 @@
border: solid 4px #818698;
border-radius: 21px;
}
.mt5{
margin-top: 5px;
}