Skip to content

Commit

Permalink
Assessed PR comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyanziano committed Nov 29, 2018
1 parent dbd646b commit 8154e13
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 16 deletions.
4 changes: 0 additions & 4 deletions packages/app/client/src/ui/shell/mdi/documents/documents.tsx
Expand Up @@ -44,10 +44,6 @@ export interface DocumentsProps {
}

export class Documents extends React.Component<DocumentsProps> {
constructor(props: DocumentsProps) {
super(props);
}

public render(): JSX.Element[] {
const { activeDocumentId = '', tabOrder = [], documents = {} } = this.props;

Expand Down
Expand Up @@ -36,11 +36,12 @@ import { Documents, DocumentsProps } from './documents';
import { RootState } from '../../../../data/store';

function mapStateToProps(state: RootState, ownProps: DocumentsProps): DocumentsProps {
const { editors } = state.editor;
return {
...ownProps,
activeDocumentId: state.editor.editors[ownProps.owningEditor].activeDocumentId,
documents: state.editor.editors[ownProps.owningEditor].documents,
tabOrder: state.editor.editors[ownProps.owningEditor].tabOrder
activeDocumentId: editors[ownProps.owningEditor].activeDocumentId,
documents: editors[ownProps.owningEditor].documents,
tabOrder: editors[ownProps.owningEditor].tabOrder
};
}

Expand Down
4 changes: 0 additions & 4 deletions packages/app/client/src/ui/shell/mdi/mdi.tsx
Expand Up @@ -38,10 +38,6 @@ import * as styles from './mdi.scss';
import { DocumentsContainer } from './documents/documentsContainer';

export class MDIComponent extends React.Component<MDIProps> {
constructor(props: MDIProps) {
super(props);
}

public render(): React.ReactNode {
const { presentationModeEnabled } = this.props;
return (
Expand Down
Expand Up @@ -42,11 +42,7 @@ export interface TabbedDocumentProps {
}

export class TabbedDocument extends React.Component<TabbedDocumentProps> {
constructor(props: TabbedDocumentProps) {
super(props);
}

render() {
public render() {
const { children, documentId, hidden } = this.props;
return (
<TabbedDocumentContentWrapper
Expand Down

0 comments on commit 8154e13

Please sign in to comment.