This repository was archived by the owner on Mar 24, 2023. It is now read-only.
File tree 3 files changed +6
-6
lines changed
3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @replicatedhq/ship-init" ,
3
- "version" : " 1.6.7 " ,
3
+ "version" : " 1.6.8 " ,
4
4
"description" : " Shared component that contains the Ship Init app" ,
5
5
"author" : " Replicated, Inc." ,
6
6
"license" : " Apache-2.0" ,
Original file line number Diff line number Diff line change @@ -9,8 +9,9 @@ import "./scss/index.scss";
9
9
10
10
export class ShipConfigRenderer extends React . Component {
11
11
static propTypes = {
12
- /** Config groups itesms to render */
13
- groups : PropTypes . array . isRequired ,
12
+ groups : PropTypes . array . isRequired , // Config groups items to render
13
+ handleChange : PropTypes . func ,
14
+ getData : PropTypes . func ,
14
15
}
15
16
16
17
static defaultProps = {
@@ -32,8 +33,7 @@ export class ShipConfigRenderer extends React.Component {
32
33
< ConfigRender
33
34
fieldsList = { groupsList }
34
35
fields = { _groups }
35
- handleChange = { ( ) => { return ; } }
36
- getData = { ( ) => { return ; } }
36
+ handleChange = { this . props . handleChange }
37
37
/>
38
38
</ div >
39
39
)
Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ export default class ConfigRender extends React.Component {
79
79
this . setState ( { groups : keyBy ( groups , "name" ) } ) ;
80
80
81
81
// TODO: maybe this should only be on submit
82
- this . triggerChange ( this . props . getData ( groups ) ) ;
82
+ this . triggerChange ( groups ) ;
83
83
}
84
84
85
85
componentDidUpdate ( lastProps ) {
You can’t perform that action at this time.
0 commit comments