From 001d4fa6f17f313db0a30488f5951400f756e6fb Mon Sep 17 00:00:00 2001 From: copios Date: Thu, 31 Jan 2019 17:27:24 +0900 Subject: [PATCH] fix(edit): inclide height in edit form --- app/renderer/components/sensor/edit/Form.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/renderer/components/sensor/edit/Form.jsx b/app/renderer/components/sensor/edit/Form.jsx index aa497b6..1cbe222 100644 --- a/app/renderer/components/sensor/edit/Form.jsx +++ b/app/renderer/components/sensor/edit/Form.jsx @@ -10,7 +10,7 @@ import { withStyles } from '@material-ui/core/styles' import styles from '../../../styles/' class Form extends Component { - fields = ({ age, weight, name, method, sex, max }) => { + fields = ({ age, weight, height, name, method, sex, max }) => { return ( {this.textField('name', '様', '名前', name)} @@ -20,6 +20,7 @@ class Form extends Component { })} {this.textField('age', '才', '年齢', age)} {this.textField('weight', 'Kg', '体重', weight)} + {this.textField('height', 'cm', '身長', height)} {this.textField('method', '', '最大心拍数計算式', method, { select: true, children: this.optionsFor(methods),