Fix incorrect translation output

app.trans returns a VirtualElement, so there's no need to wrap it in
m.trust.

closes #237
This commit is contained in:
Toby Zerner 2015-08-31 12:41:36 +09:30
parent f5517fbd88
commit 42e722d824

View File

@ -39,7 +39,7 @@ export default class ChangeEmailModal extends Modal {
return ( return (
<div className="Modal-body"> <div className="Modal-body">
<div className="Form Form--centered"> <div className="Form Form--centered">
<p className="helpText">{m.trust(app.trans('core.confirmation_email_sent', {email: <strong>{this.email()}</strong>}))}</p> <p className="helpText">{app.trans('core.confirmation_email_sent', {email: <strong>{this.email()}</strong>})}</p>
<div className="Form-group"> <div className="Form-group">
<a href={'http://' + emailProviderName} className="Button Button--primary Button--block"> <a href={'http://' + emailProviderName} className="Button Button--primary Button--block">
{app.trans('core.go_to', {location: emailProviderName})} {app.trans('core.go_to', {location: emailProviderName})}