From 627885888915dc23e99fa3d010ae47372c9671ea Mon Sep 17 00:00:00 2001 From: Chen-I Lim Date: Wed, 21 Oct 2020 16:17:31 -0700 Subject: [PATCH] Fix some linting issues --- webapp/src/components/viewMenu.tsx | 23 ++++++++++++----------- webapp/src/octoListener.ts | 2 +- 2 files changed, 13 insertions(+), 12 deletions(-) diff --git a/webapp/src/components/viewMenu.tsx b/webapp/src/components/viewMenu.tsx index c69eecde2..a470a36ca 100644 --- a/webapp/src/components/viewMenu.tsx +++ b/webapp/src/components/viewMenu.tsx @@ -3,7 +3,7 @@ import React from 'react' import {Board} from '../blocks/board' -import {BoardView, MutableBoardView} from '../blocks/boardView' +import {MutableBoardView} from '../blocks/boardView' import {BoardTree} from '../viewModel/boardTree' import mutator from '../mutator' import {Utils} from '../utils' @@ -16,8 +16,8 @@ type Props = { } export default class ViewMenu extends React.Component { - handleDeleteView = async (id: string) => { - const {board, boardTree, showView} = this.props + handleDeleteView = async () => { + const {boardTree, showView} = this.props Utils.log('deleteView') const view = boardTree.activeView const nextView = boardTree.views.find((o) => o !== view) @@ -32,7 +32,7 @@ export default class ViewMenu extends React.Component { showView(view.id) } - handleAddViewBoard = async (id: string) => { + handleAddViewBoard = async () => { const {board, boardTree, showView} = this.props Utils.log('addview-board') const view = new MutableBoardView() @@ -53,7 +53,7 @@ export default class ViewMenu extends React.Component { }) } - handleAddViewTable = async (id: string) => { + handleAddViewTable = async () => { const {board, boardTree, showView} = this.props Utils.log('addview-table') @@ -80,12 +80,13 @@ export default class ViewMenu extends React.Component { const {boardTree} = this.props return ( - {boardTree.views.map((view) => ())} + {boardTree.views.map((view) => ( + ))} {boardTree.views.length > 1 &&