This commit is contained in:
parent
2efef99c95
commit
9d19d02636
@ -52,7 +52,7 @@ class IrisAccount extends Component<Props> {
|
|||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
} else if (this.state.error) {
|
} else if (this.state.error) {
|
||||||
view = <div className="text-iris-red">Error: {this.state.error}</div>;
|
view = <div className="error">Error: {this.state.error}</div>;
|
||||||
} else if (this.state.showChallenge) {
|
} else if (this.state.showChallenge) {
|
||||||
window.cf_turnstile_callback = (token: any) => this.register(token);
|
window.cf_turnstile_callback = (token: any) => this.register(token);
|
||||||
view = (
|
view = (
|
||||||
@ -89,13 +89,13 @@ class IrisAccount extends Component<Props> {
|
|||||||
<div>
|
<div>
|
||||||
{this.state.newUserNameValid ? (
|
{this.state.newUserNameValid ? (
|
||||||
<>
|
<>
|
||||||
<span className="text-iris-green">
|
<span className="success">
|
||||||
<FormattedMessage defaultMessage="Username is available" />
|
<FormattedMessage defaultMessage="Username is available" />
|
||||||
</span>
|
</span>
|
||||||
<AccountName name={this.state.newUserName} link={false} />
|
<AccountName name={this.state.newUserName} link={false} />
|
||||||
</>
|
</>
|
||||||
) : (
|
) : (
|
||||||
<span className="text-iris-red">{this.state.invalidUsernameMessage}</span>
|
<span className="error">{this.state.invalidUsernameMessage}</span>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
@ -4,7 +4,7 @@ import FormattedMessage from "Element/FormattedMessage";
|
|||||||
export default function ReservedAccount({ name = "", enableReserved = () => {}, declineReserved = () => {} }) {
|
export default function ReservedAccount({ name = "", enableReserved = () => {}, declineReserved = () => {} }) {
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
<p className="text-iris-green">
|
<p className="success">
|
||||||
<FormattedMessage
|
<FormattedMessage
|
||||||
defaultMessage="Username iris.to/<b>{name}</b> is reserved for you!"
|
defaultMessage="Username iris.to/<b>{name}</b> is reserved for you!"
|
||||||
values={{ name, b: s => <b>{s}</b> }}
|
values={{ name, b: s => <b>{s}</b> }}
|
||||||
|
Loading…
Reference in New Issue
Block a user