react 16 upgrade
[sdc.git] / openecomp-ui / src / sdc-app / onboarding / softwareProduct / processes / SoftwareProductProcessesView.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 './SoftwareProductProcessListView.jsx';
20
21 class SoftwareProductProcessesView extends React.Component {
22     state = {
23         localFilter: ''
24     };
25
26     static propTypes = {
27         onAddProcess: PropTypes.func.isRequired,
28         onEditProcess: PropTypes.func.isRequired,
29         onDeleteProcess: PropTypes.func.isRequired,
30         isDisplayEditor: PropTypes.bool.isRequired,
31         isReadOnlyMode: PropTypes.bool.isRequired,
32         currentSoftwareProduct: PropTypes.object
33     };
34
35     render() {
36         return (
37             <div className="software-product-landing-view-right-side vsp-processes-page">
38                 <SoftwareProductProcessListView
39                     addButtonTitle={i18n('Add Process Details')}
40                     {...this.props}
41                 />
42             </div>
43         );
44     }
45 }
46
47 export default SoftwareProductProcessesView;