Skip to content
This repository has been archived by the owner on Aug 28, 2020. It is now read-only.

Commit

Permalink
Feats/Languages/Honors
Browse files Browse the repository at this point in the history
  • Loading branch information
ukatama committed Mar 27, 2016
1 parent 8dff6bd commit 959b385
Show file tree
Hide file tree
Showing 3 changed files with 473 additions and 97 deletions.
2 changes: 1 addition & 1 deletion nekodev
13 changes: 13 additions & 0 deletions src/components/sheet-field.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import Checkbox from 'material-ui/lib/checkbox';
import MenuItem from 'material-ui/lib/menus/menu-item';
import TextField from 'material-ui/lib/text-field';
import SelectField from 'material-ui/lib/select-field';
Expand Down Expand Up @@ -82,6 +83,18 @@ export class SheetField extends Component {
{itemElements}
</SelectField>
);
} else if (type === 'checkbox') {
return (
<Checkbox
{...otherProps}
checked={Boolean(value)}
label={label}
readOnly={readOnly}
ref={(c) => (this.field = c)}
style={{width: 16, display: 'inline-block'}}
onCheck={onChange}
/>
);
}

return (
Expand Down
Loading

0 comments on commit 959b385

Please sign in to comment.