diff options
| author | Tyler Schicke <tyler_schicke@brown.edu> | 2019-04-04 01:30:01 -0400 |
|---|---|---|
| committer | Tyler Schicke <tyler_schicke@brown.edu> | 2019-04-04 01:30:01 -0400 |
| commit | dc2a998acdae1545c8e7bf9ee9f4ca98bba82ac9 (patch) | |
| tree | 4f1c39d66dc9a3a653ec717c502854f60029add3 /src/client/views/Main.tsx | |
| parent | c10b9ca57e13c8de8b35f01e6c6ce82706319e4d (diff) | |
Started adding linting
Diffstat (limited to 'src/client/views/Main.tsx')
| -rw-r--r-- | src/client/views/Main.tsx | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/src/client/views/Main.tsx b/src/client/views/Main.tsx index 8f67c006d..446c3d55f 100644 --- a/src/client/views/Main.tsx +++ b/src/client/views/Main.tsx @@ -204,9 +204,7 @@ export class Main extends React.Component { @observable workspacesShown: boolean = false; - areWorkspacesShown = () => { - return this.workspacesShown; - } + areWorkspacesShown = () => this.workspacesShown @action toggleWorkspaces = () => { this.workspacesShown = !this.workspacesShown; @@ -373,8 +371,7 @@ export class Main extends React.Component { } } -Documents.initProtos().then(() => { - return CurrentUserUtils.loadCurrentUser() -}).then(() => { - ReactDOM.render(<Main />, document.getElementById('root')); -}); +Documents.initProtos().then(() => + CurrentUserUtils.loadCurrentUser()).then(() => { + ReactDOM.render(<Main />, document.getElementById('root')); + }); |
