forked from p15670423/monkey
Changed important tabs to be highlighted rather than having text in the front
This commit is contained in:
parent
167d1f50d5
commit
9f21ce07f1
|
@ -323,8 +323,9 @@ SCHEMA = {
|
|||
},
|
||||
"properties": {
|
||||
"basic": {
|
||||
"title": "Basic - Exploits",
|
||||
"title": "Exploits",
|
||||
"type": "object",
|
||||
"primary": True,
|
||||
"properties": {
|
||||
"general": {
|
||||
"title": "General",
|
||||
|
@ -377,7 +378,7 @@ SCHEMA = {
|
|||
}
|
||||
},
|
||||
"basic_network": {
|
||||
"title": "Basic - Network",
|
||||
"title": "Network",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"general": {
|
||||
|
|
|
@ -383,10 +383,13 @@ class ConfigurePageComponent extends AuthComponent {
|
|||
activeKey={this.state.selectedSection} onSelect={this.setSelectedSection}
|
||||
style={{'marginBottom': '2em'}}
|
||||
className={'config-nav'}>
|
||||
{this.state.sections.map(section =>
|
||||
{this.state.sections.map(section => {
|
||||
let classProp = section.key.startsWith('basic') ? 'tab-primary' : '';
|
||||
return (
|
||||
<Nav.Item>
|
||||
<Nav.Link eventKey={section.key}>{section.title}</Nav.Link>
|
||||
</Nav.Item>)}
|
||||
<Nav.Link className={classProp} eventKey={section.key}>{section.title}</Nav.Link>
|
||||
</Nav.Item>);
|
||||
})}
|
||||
</Nav>)
|
||||
};
|
||||
|
||||
|
|
|
@ -2,6 +2,11 @@
|
|||
height: 50px !important;
|
||||
}
|
||||
|
||||
.config-nav .nav-link.tab-primary{
|
||||
color: $monkey-alt;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.config-nav .nav-item > a{
|
||||
color: $black;
|
||||
padding: 15px 10px 15px 10px;
|
||||
|
|
Loading…
Reference in New Issue