Cleaning up code

This commit is contained in:
piotrpekala7 2021-01-26 23:55:13 +01:00
parent 32945dbd55
commit 33e0fbb0b4
4 changed files with 8 additions and 8 deletions

View File

@ -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'
};

View File

@ -12,7 +12,7 @@ const cardTitleStyle = {
const cardTextStyle = {
color: 'black',
OverflowY: 'auto',
overflow: 'auto',
height: '100px'
};

View File

@ -1 +1 @@
<span #myReactComponentContainer></span>
<span #issueListComponentContainer></span>

View File

@ -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);
}
}