Changed important tabs to be highlighted rather than having text in the front

This commit is contained in:
VakarisZ 2020-07-20 18:22:37 +03:00
parent 167d1f50d5
commit 9f21ce07f1
3 changed files with 14 additions and 5 deletions

View File

@ -323,8 +323,9 @@ SCHEMA = {
}, },
"properties": { "properties": {
"basic": { "basic": {
"title": "Basic - Exploits", "title": "Exploits",
"type": "object", "type": "object",
"primary": True,
"properties": { "properties": {
"general": { "general": {
"title": "General", "title": "General",
@ -377,7 +378,7 @@ SCHEMA = {
} }
}, },
"basic_network": { "basic_network": {
"title": "Basic - Network", "title": "Network",
"type": "object", "type": "object",
"properties": { "properties": {
"general": { "general": {

View File

@ -383,10 +383,13 @@ class ConfigurePageComponent extends AuthComponent {
activeKey={this.state.selectedSection} onSelect={this.setSelectedSection} activeKey={this.state.selectedSection} onSelect={this.setSelectedSection}
style={{'marginBottom': '2em'}} style={{'marginBottom': '2em'}}
className={'config-nav'}> 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.Item>
<Nav.Link eventKey={section.key}>{section.title}</Nav.Link> <Nav.Link className={classProp} eventKey={section.key}>{section.title}</Nav.Link>
</Nav.Item>)} </Nav.Item>);
})}
</Nav>) </Nav>)
}; };

View File

@ -2,6 +2,11 @@
height: 50px !important; height: 50px !important;
} }
.config-nav .nav-link.tab-primary{
color: $monkey-alt;
font-weight: bold;
}
.config-nav .nav-item > a{ .config-nav .nav-item > a{
color: $black; color: $black;
padding: 15px 10px 15px 10px; padding: 15px 10px 15px 10px;