mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-06-16 13:58:13 +00:00
Cleaning up code
This commit is contained in:
@ -5,11 +5,11 @@ import IssueComponent from './issue';
|
|||||||
import FilterComponent from './filter';
|
import FilterComponent from './filter';
|
||||||
|
|
||||||
const wrapperStyle = {
|
const wrapperStyle = {
|
||||||
JustifyContent: 'center',
|
justifyContent: 'center' as 'center',
|
||||||
display: 'flex',
|
display: 'flex',
|
||||||
flex: 1,
|
flex: 1,
|
||||||
FlexDirection: 'row',
|
flexDirection: 'row' as 'row',
|
||||||
FlexWrap: 'wrap',
|
flexWrap: 'wrap' as 'wrap',
|
||||||
margin: '20px'
|
margin: '20px'
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -12,7 +12,7 @@ const cardTitleStyle = {
|
|||||||
|
|
||||||
const cardTextStyle = {
|
const cardTextStyle = {
|
||||||
color: 'black',
|
color: 'black',
|
||||||
OverflowY: 'auto',
|
overflow: 'auto',
|
||||||
height: '100px'
|
height: '100px'
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -1 +1 @@
|
|||||||
<span #myReactComponentContainer></span>
|
<span #issueListComponentContainer></span>
|
||||||
|
@ -25,7 +25,7 @@ templateUrl: './report-issue.component.html',
|
|||||||
styleUrls: ['./report-issue.component.scss']
|
styleUrls: ['./report-issue.component.scss']
|
||||||
})
|
})
|
||||||
export class ReportIssueComponent implements OnInit, OnChanges, OnDestroy, AfterViewInit {
|
export class ReportIssueComponent implements OnInit, OnChanges, OnDestroy, AfterViewInit {
|
||||||
@ViewChild('myReactComponentContainer') containerRef: ElementRef;
|
@ViewChild('issueListComponentContainer') containerRef: ElementRef;
|
||||||
|
|
||||||
constructor() {}
|
constructor() {}
|
||||||
|
|
||||||
@ -46,8 +46,8 @@ export class ReportIssueComponent implements OnInit, OnChanges, OnDestroy, After
|
|||||||
}
|
}
|
||||||
|
|
||||||
private render() {
|
private render() {
|
||||||
ReactDOM.render(<div className={'i-am-classy'}>
|
ReactDOM.render(<div>
|
||||||
<IssueListComponent />
|
<IssueListComponent />
|
||||||
</div>, this.containerRef.nativeElement);
|
</div>, this.containerRef.nativeElement);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user