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