🎨 Fix TSLint errors
This commit is contained in:
parent
8b9516de72
commit
6d5d0df1c0
2 changed files with 13 additions and 13 deletions
|
@ -57,14 +57,14 @@ const IconButton = ({ onClick, type }: IconButtonProps) => (
|
|||
);
|
||||
|
||||
export class Lightbox extends React.Component<Props, {}> {
|
||||
private containerRef: HTMLDivElement | null = null;
|
||||
|
||||
public static defaultProps: Partial<Props> = {
|
||||
shouldShowNextButton: false,
|
||||
shouldShowPreviousButton: false,
|
||||
shouldShowSaveAsButton: false,
|
||||
};
|
||||
|
||||
private containerRef: HTMLDivElement | null = null;
|
||||
|
||||
public componentDidMount() {
|
||||
const useCapture = true;
|
||||
document.addEventListener('keyup', this.onKeyUp, useCapture);
|
||||
|
|
|
@ -36,6 +36,17 @@ interface Props {
|
|||
}
|
||||
|
||||
export class AttachmentSection extends React.Component<Props, {}> {
|
||||
public render() {
|
||||
const { header } = this.props;
|
||||
|
||||
return (
|
||||
<div style={styles.container}>
|
||||
<h2 style={styles.header}>{header}</h2>
|
||||
<div style={styles.itemContainer}>{this.renderItems()}</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
private renderItems() {
|
||||
const { i18n, messages, type } = this.props;
|
||||
|
||||
|
@ -78,15 +89,4 @@ export class AttachmentSection extends React.Component<Props, {}> {
|
|||
|
||||
onItemClick({ message });
|
||||
};
|
||||
|
||||
public render() {
|
||||
const { header } = this.props;
|
||||
|
||||
return (
|
||||
<div style={styles.container}>
|
||||
<h2 style={styles.header}>{header}</h2>
|
||||
<div style={styles.itemContainer}>{this.renderItems()}</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue