#36: Add ability to select Linux distribution type if OS is unsupported - partial
This commit is contained in:
11
src/components/SelectAppPlatform/SelectAppPlatform.css
Normal file
11
src/components/SelectAppPlatform/SelectAppPlatform.css
Normal file
@@ -0,0 +1,11 @@
|
||||
.SAPHeading {
|
||||
color: var(--text_color_error);
|
||||
text-align: center;
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
|
||||
.SAPContent {
|
||||
max-height: 60vh;
|
||||
overflow-y: auto;
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
27
src/components/SelectAppPlatform/SelectAppPlatform.js
Normal file
27
src/components/SelectAppPlatform/SelectAppPlatform.js
Normal file
@@ -0,0 +1,27 @@
|
||||
import React from 'react';
|
||||
import './SelectAppPlatform.css';
|
||||
import * as Constants from '../../constants';
|
||||
import {connect} from 'react-redux';
|
||||
import Box from '../UI/Box/Box';
|
||||
import Button from '../UI/Button/Button';
|
||||
import DropDown from '../UI/DropDown/DropDown';
|
||||
import {rebootSystem} from '../../redux/actions/common_actions';
|
||||
|
||||
const mapDispatchToProps = dispatch => {
|
||||
return {
|
||||
rebootSystem: () => dispatch(rebootSystem()),
|
||||
};
|
||||
};
|
||||
|
||||
export default connect(null, mapDispatchToProps)(props => {
|
||||
return (
|
||||
<Box dxDark dxStyle={{padding: '8px'}}>
|
||||
<h1 className={'SAPHeading'}>Select Linux Platform</h1>
|
||||
<div className={'SAPContent'}>
|
||||
<p>Repertory was unable to detect your Linux distribution. Please select one of the following and click <b>'Test'</b> to continue:</p>
|
||||
</div>
|
||||
<DropDown items={Constants.LINUX_SELECTABLE_PLATFORMS}/>
|
||||
<Button clicked={}>Test</Button>
|
||||
</Box>
|
||||
);
|
||||
});
|
||||
Reference in New Issue
Block a user