- {siteView.local_site.enable_nsfw && (
- <div className="form-group row">
- <div className="col-sm-10">
- <div className="form-check">
- <input
- className="form-check-input"
- id="register-show-nsfw"
- type="checkbox"
- checked={this.state.form.show_nsfw}
- onChange={linkEvent(this, this.handleRegisterShowNsfwChange)}
- />
- <label
- className="form-check-label"
- htmlFor="register-show-nsfw"
- >
- {i18n.t("show_nsfw")}
- </label>
- </div>
+ <div className="form-group row">
+ <div className="col-sm-10">
+ <div className="form-check">
+ <input
+ className="form-check-input"
+ id="register-show-nsfw"
+ type="checkbox"
+ checked={this.state.form.show_nsfw}
+ onChange={linkEvent(this, this.handleRegisterShowNsfwChange)}
+ />
+ <label className="form-check-label" htmlFor="register-show-nsfw">
+ {i18n.t("show_nsfw")}
+ </label>