Merge branch 'tos' into release/1.5.4
This commit is contained in:
@@ -137,6 +137,10 @@ section {
|
||||
grid-template-columns: 1fr 1fr;
|
||||
grid-template-rows: min-content 1fr;
|
||||
|
||||
button {
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
.colour-info {
|
||||
grid-area: vinfo;
|
||||
display: flex;
|
||||
|
||||
@@ -34,7 +34,7 @@ function Register(args) {
|
||||
submitRegister,
|
||||
} = args;
|
||||
|
||||
const { password, confirm, name } = this.state;
|
||||
const { password, confirm, name, terms } = this.state;
|
||||
|
||||
const registerSubmit = (event) => {
|
||||
event.preventDefault();
|
||||
@@ -45,7 +45,7 @@ function Register(args) {
|
||||
password === confirm;
|
||||
|
||||
const registerDisabled = () => {
|
||||
return !(registerConfirm() && password && name);
|
||||
return !(registerConfirm() && password && name && terms);
|
||||
}
|
||||
|
||||
return (
|
||||
@@ -74,6 +74,14 @@ function Register(args) {
|
||||
value={this.state.confirm}
|
||||
onInput={linkState(this, 'confirm')}
|
||||
/>
|
||||
<div>
|
||||
<input
|
||||
type="checkbox"
|
||||
onInput={linkState(this, 'terms')
|
||||
}/>
|
||||
Confirm agreement to terms of service
|
||||
<button onClick={() => window.open('/tos.html')}>VIEW</button>
|
||||
</div>
|
||||
<button
|
||||
class="login-btn"
|
||||
disabled={registerDisabled()}
|
||||
|
||||
+1098
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user