mirror of
https://github.com/mattermost/focalboard.git
synced 2024-11-27 08:31:20 +02:00
Fix some linting issues
This commit is contained in:
parent
fe881b001d
commit
6278858889
@ -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<Props> {
|
||||
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<Props> {
|
||||
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<Props> {
|
||||
})
|
||||
}
|
||||
|
||||
handleAddViewTable = async (id: string) => {
|
||||
handleAddViewTable = async () => {
|
||||
const {board, boardTree, showView} = this.props
|
||||
|
||||
Utils.log('addview-table')
|
||||
@ -80,7 +80,8 @@ export default class ViewMenu extends React.Component<Props> {
|
||||
const {boardTree} = this.props
|
||||
return (
|
||||
<Menu>
|
||||
{boardTree.views.map((view) => (<Menu.Text
|
||||
{boardTree.views.map((view) => (
|
||||
<Menu.Text
|
||||
key={view.id}
|
||||
id={view.id}
|
||||
name={view.title}
|
||||
|
@ -92,7 +92,7 @@ class OctoListener {
|
||||
default:
|
||||
Utils.logError(`Unexpected action: ${message.action}`)
|
||||
}
|
||||
} catch (e) {
|
||||
} catch (err) {
|
||||
Utils.log('message is not an object')
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user