Update checkbox

pull/21833/head
Swapnil Raj 2020-07-16 17:22:35 +05:30
parent 8546d09fc4
commit 15f94d3732
1 changed files with 3 additions and 1 deletions

View File

@ -19,6 +19,7 @@ import PropTypes from "prop-types";
import {_t, pickBestLanguage} from "../../../languageHandler";
import * as sdk from "../../..";
import {objectClone} from "../../../utils/objects";
import StyledCheckbox from "../elements/StyledCheckbox";
export default class InlineTermsAgreement extends React.Component {
static propTypes = {
@ -90,8 +91,9 @@ export default class InlineTermsAgreement extends React.Component {
<div key={i} className='mx_InlineTermsAgreement_cbContainer'>
<div>{introText}</div>
<div className='mx_InlineTermsAgreement_checkbox'>
<input type='checkbox' onChange={() => this._togglePolicy(i)} checked={policy.checked} />
<StyledCheckbox onChange={() => this._togglePolicy(i)} checked={policy.checked}>
{_t("Accept")}
</StyledCheckbox>
</div>
</div>,
);