react 16 upgrade
[sdc.git] / openecomp-ui / src / sdc-app / onboarding / softwareProduct / components / processes / SoftwareProductComponentsProcessesListView.jsx
1 /*
2  * Copyright © 2016-2018 European Support Limited
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 import React from 'react';
17 import PropTypes from 'prop-types';
18 import i18n from 'nfvo-utils/i18n/i18n.js';
19 import SoftwareProductProcessListView from 'sdc-app/onboarding/softwareProduct/processes/SoftwareProductProcessListView.jsx';
20
21 class SoftwareProductProcessesView extends React.Component {
22     state = {
23         localFilter: ''
24     };
25
26     static propTypes = {
27         onAddProcess: PropTypes.func,
28         onEditProcess: PropTypes.func,
29         onDeleteProcess: PropTypes.func,
30         isDisplayModal: PropTypes.bool,
31         isModalInEditMode: PropTypes.bool,
32         onStorageSelect: PropTypes.func,
33         componentId: PropTypes.string,
34         softwareProductId: PropTypes.string,
35         currentSoftwareProduct: PropTypes.object
36     };
37
38     render() {
39         return (
40             <div className="vsp-processes-page">
41                 <div className="software-product-view">
42                     <div className="software-product-landing-view-right-side vsp-components-processes-page flex-column">
43                         <SoftwareProductProcessListView
44                             addButtonTitle={i18n(
45                                 'Add Component Process Details'
46                             )}
47                             {...this.props}
48                         />
49                     </div>
50                 </div>
51             </div>
52         );
53     }
54 }
55
56 export default SoftwareProductProcessesView;