Skip to content

Commit

Permalink
fix: update fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Chisomchima committed Jan 7, 2025
1 parent 17487ae commit 4264a3f
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
4 changes: 2 additions & 2 deletions i18n/en.pot
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ msgstr ""
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1)\n"
"POT-Creation-Date: 2024-12-19T12:57:22.277Z\n"
"PO-Revision-Date: 2024-12-19T12:57:22.277Z\n"
"POT-Creation-Date: 2025-01-07T08:32:23.225Z\n"
"PO-Revision-Date: 2025-01-07T08:32:23.226Z\n"

msgid "Never"
msgstr "Never"
Expand Down
2 changes: 1 addition & 1 deletion src/app.router.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class AppRouter extends Component {

getDefaultRedirect() {
const enforceVerifiedEmail =
this.props.d2.system.settings.settings.enforceVerifiedEmail
this.props.d2?.system?.settings?.settings?.enforceVerifiedEmail
const emailVerified = this.props.d2.currentUser.emailVerified

// Redirect to the profile page if email is unverified and the setting is enforced
Expand Down
3 changes: 2 additions & 1 deletion src/layout/VerifyEmailWarning.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ import React from 'react'
export function VerifyEmailWarning({ config }) {
const enforceVerifiedEmail =
config?.system?.settings?.enforceVerifiedEmail || false
const emailVerified = config?.currentUser?.emailVerified || false
const emailVerified =
config.system?.settings?.settings?.enforceVerifiedEmail || false

Check failure on line 10 in src/layout/VerifyEmailWarning.js

View workflow job for this annotation

GitHub Actions / lint / lint

'config.system.settings.settings' is missing in props validation

Check failure on line 10 in src/layout/VerifyEmailWarning.js

View workflow job for this annotation

GitHub Actions / lint / lint

'config.system.settings.settings.enforceVerifiedEmail' is missing in props validation

if (enforceVerifiedEmail && !emailVerified) {
return (
Expand Down
5 changes: 3 additions & 2 deletions src/layout/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,11 @@ html, body {
margin: 0;
}

.noticebox-wrapper{
margin-right: 15px;
.noticebox-wrapper {
margin-inline-end: 15px;
}


.info-cell-name {
color: #777;
font-size: 12pt;
Expand Down

0 comments on commit 4264a3f

Please sign in to comment.