error and success classNames

This commit is contained in:
Martti Malmi 2023-10-04 13:37:38 +03:00
parent 2efef99c95
commit 9d19d02636
2 changed files with 4 additions and 4 deletions

View File

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

View File

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