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

View File

@ -12,7 +12,7 @@ const cardTitleStyle = {
const cardTextStyle = { const cardTextStyle = {
color: 'black', color: 'black',
OverflowY: 'auto', overflow: 'auto',
height: '100px' 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'] 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);
} }
} }