-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
114 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import React from 'react'; | ||
import PropTypes from 'prop-types'; | ||
import './index.sass'; | ||
|
||
const ShutdownButton = ({ style }) => | ||
( | ||
<div> | ||
<button className="ShutdownButton" type="button" disabled style={style}>Shut down</button> | ||
</div> | ||
); | ||
|
||
ShutdownButton.propTypes = { | ||
style: PropTypes.object, | ||
}; | ||
|
||
export default ShutdownButton; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
@import '../../styles/index' | ||
|
||
.ShutdownButton | ||
font-family: Rubik | ||
font-size: 12px | ||
font-weight: 500 | ||
letter-spacing: 1px | ||
padding: 5px 10px | ||
border-radius: 4px | ||
border: none | ||
border-bottom: 1px solid $separator | ||
|
||
&:disabled | ||
opacity: 0.5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
import React from 'react'; | ||
import { connect } from 'react-redux'; | ||
import ShutdownButton from '../../components/ShutdownButton/ShutdownButton'; | ||
import IconHeader from '../../components/IconHeader/IconHeader'; | ||
|
||
|
||
import { | ||
Table, | ||
TableCell, | ||
TableRow, | ||
TableHeader, | ||
TableBody, | ||
} from '../../components/Table/Table'; | ||
|
||
class SettingsWrapper extends React.Component { | ||
constructor(props) { | ||
super(props); | ||
this.state = {}; | ||
} | ||
|
||
render() { | ||
return ( | ||
|
||
<div> | ||
<IconHeader type="settings" title="PROJECT INFORMATION" style={{ margin: '1rem' }} /> | ||
<Table style={{ width: '90%', margin: '1rem' }}> | ||
<TableHeader> | ||
<TableRow> | ||
<TableCell style={{ fontWeight: '900', fontSize: '14px' }}>Project-name</TableCell> | ||
<TableCell /> | ||
<TableCell /> | ||
</TableRow> | ||
</TableHeader> | ||
|
||
<TableBody> | ||
<TableRow> | ||
<TableCell>Branch</TableCell> | ||
<TableCell>somebranch</TableCell> | ||
<TableCell /> | ||
</TableRow> | ||
|
||
<TableRow> | ||
<TableCell>Commit</TableCell> | ||
<TableCell>commit hash</TableCell> | ||
<TableCell /> | ||
</TableRow> | ||
|
||
<TableRow> | ||
<TableCell>Message</TableCell> | ||
<TableCell>penguin</TableCell> | ||
<TableCell /> | ||
</TableRow> | ||
<TableRow> | ||
<TableCell>Build Type</TableCell> | ||
<TableCell>docker-compose</TableCell> | ||
<TableCell /> | ||
</TableRow> | ||
</TableBody> | ||
</Table> | ||
<ShutdownButton style={{ margin: '1rem' }} /> | ||
</div> | ||
); | ||
} | ||
} | ||
|
||
SettingsWrapper.propTypes = {}; | ||
|
||
const mapStateToProps = () => { return {}; }; | ||
|
||
const mapDispatchToProps = () => { return {}; }; | ||
|
||
const Settings = connect(mapStateToProps, mapDispatchToProps)(SettingsWrapper); | ||
|
||
export default Settings; |