mirror of
https://github.com/SchildiChat/element-web.git
synced 2024-10-01 01:26:12 -04:00
Use _tJsx for PasswordNagBar (because it has <u>)
This commit is contained in:
parent
8f8b28425d
commit
c4a3211cfc
@ -20,7 +20,7 @@ import React from 'react';
|
|||||||
import sdk from 'matrix-react-sdk';
|
import sdk from 'matrix-react-sdk';
|
||||||
import Modal from 'matrix-react-sdk/lib/Modal';
|
import Modal from 'matrix-react-sdk/lib/Modal';
|
||||||
import dis from 'matrix-react-sdk/lib/dispatcher';
|
import dis from 'matrix-react-sdk/lib/dispatcher';
|
||||||
import { _t } from 'matrix-react-sdk/lib/languageHandler';
|
import { _t, _tJsx } from 'matrix-react-sdk/lib/languageHandler';
|
||||||
|
|
||||||
export default React.createClass({
|
export default React.createClass({
|
||||||
onUpdateClicked: function() {
|
onUpdateClicked: function() {
|
||||||
@ -49,7 +49,11 @@ export default React.createClass({
|
|||||||
alt="Warning"
|
alt="Warning"
|
||||||
/>
|
/>
|
||||||
<div className="mx_MatrixToolbar_content">
|
<div className="mx_MatrixToolbar_content">
|
||||||
{ _t("To return to your account in future you need to <u>set a password</u>") }
|
{ _tJsx(
|
||||||
|
"To return to your account in future you need to <u>set a password</u>",
|
||||||
|
/<u>(.*?)<\/u>/,
|
||||||
|
(sub) => { return <u>{ sub }</u>; },
|
||||||
|
) }
|
||||||
</div>
|
</div>
|
||||||
<button className="mx_MatrixToolbar_action">
|
<button className="mx_MatrixToolbar_action">
|
||||||
{ _t("Set Password") }
|
{ _t("Set Password") }
|
||||||
|
Loading…
Reference in New Issue
Block a user