fix: state
This commit is contained in:
parent
c6d215361d
commit
5b389ba781
|
@ -6,19 +6,21 @@ const Existent = ({json}) => (
|
|||
<div className="existent">
|
||||
<label>
|
||||
Is ticking
|
||||
<input type="checkbox" checked={json.isTicking} />
|
||||
<input type="checkbox" checked={json.state.isTicking} readOnly />
|
||||
</label>
|
||||
<label>
|
||||
Name
|
||||
<input type="text" value={json.name} />
|
||||
<input type="text" value={json.state.name} readOnly />
|
||||
</label>
|
||||
</div>
|
||||
);
|
||||
|
||||
Existent.propTypes = {
|
||||
json: PropTypes.shape({
|
||||
isTicking: PropTypes.bool,
|
||||
name: PropTypes.string,
|
||||
state: PropTypes.shape({
|
||||
isTicking: PropTypes.bool,
|
||||
name: PropTypes.string,
|
||||
}),
|
||||
}).isRequired,
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user