Skip to content

Commit fba3d60

Browse files
committed
frontend/register: make text next to checkboxes clickable.
1 parent ced09cd commit fba3d60

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

frontend/src/components/register.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -213,11 +213,11 @@ export class Register extends Component<{}, RegisterState> {
213213
}}
214214
invalidMessage={t("password_error_message")} />
215215
</Form.Group>
216-
<Form.Group className="mb-3">
217-
<Form.Check type="checkbox" label={<Trans i18nKey="register.accept_privacy_notice" ><a target="__blank" href="https://www.tinkerforge.com/de/home/privacy_notice">link</a></Trans>} isInvalid={!this.state.acceptPrivacyValid} onClick={() => this.setState({acceptPrivacyChecked: !this.state.acceptPrivacyChecked})}/>
216+
<Form.Group className="mb-3" onClick={() => this.setState({acceptPrivacyChecked: !this.state.acceptPrivacyChecked})}>
217+
<Form.Check checked={this.state.acceptPrivacyChecked} type="checkbox" label={<Trans i18nKey="register.accept_privacy_notice" ><a target="__blank" href="https://www.tinkerforge.com/de/home/privacy_notice">link</a></Trans>} isInvalid={!this.state.acceptPrivacyValid}/>
218218
</Form.Group>
219-
<Form.Group className="mb-3">
220-
<Form.Check type="checkbox" label={<Trans i18nKey="register.accept_terms_and_conditions" ><a target="__blank" href="https://www.tinkerforge.com/de/home/terms_and_conditions">link</a></Trans>} isInvalid={!this.state.termsAndConditionsValid} onClick={() => this.setState({termsAndConditionsChecked: !this.state.termsAndConditionsChecked})}/>
219+
<Form.Group className="mb-3" onClick={() => this.setState({termsAndConditionsChecked: !this.state.termsAndConditionsChecked})}>
220+
<Form.Check checked={this.state.termsAndConditionsChecked} type="checkbox" label={<Trans i18nKey="register.accept_terms_and_conditions" ><a target="__blank" href="https://www.tinkerforge.com/de/home/terms_and_conditions">link</a></Trans>} isInvalid={!this.state.termsAndConditionsValid}/>
221221
</Form.Group>
222222
<Button variant="primary" type="submit">
223223
{t("register")}

0 commit comments

Comments
 (0)