aboutsummaryrefslogtreecommitdiff
path: root/frontend/src/components/fields/CheckField.js
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/src/components/fields/CheckField.js')
-rw-r--r--frontend/src/components/fields/CheckField.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/frontend/src/components/fields/CheckField.js b/frontend/src/components/fields/CheckField.js
index 5cceac4..33f4f83 100644
--- a/frontend/src/components/fields/CheckField.js
+++ b/frontend/src/components/fields/CheckField.js
@@ -1,5 +1,6 @@
import React, {Component} from 'react';
import './CheckField.scss';
+import './common.scss';
import {randomClassName} from "../../utils";
const classNames = require('classnames');
@@ -23,10 +24,10 @@ class CheckField extends Component {
};
return (
- <div className={classNames( "check-field", {"field-checked" : checked}, {"field-small": small})}>
+ <div className={classNames( "field", "check-field", {"field-checked" : checked}, {"field-small": small})}>
<div className="field-input">
<input type="checkbox" id={this.id} checked={checked} onChange={handler} />
- <label htmlFor={this.id}>{(checked ? "✓ " : "✗ ") + name}</label>
+ <label htmlFor={this.id}>{(checked ? "✓ " : "✗ ") + (name != null ? name : "")}</label>
</div>
</div>
);