npm run fix

This commit is contained in:
Chen-I Lim 2020-11-04 11:24:06 -08:00
parent 0c9f0f0240
commit 3c68a97451
6 changed files with 12 additions and 13 deletions

View file

@ -11,10 +11,7 @@ import {Utils} from '../utils'
import {BoardTree} from '../viewModel/boardTree'
import Editable from '../widgets/editable'
import MenuWrapper from '../widgets/menuWrapper'
import Menu from '../widgets/menu'
import ValueSelector from '../widgets/valueSelector'
import {skipPartiallyEmittedExpressions} from 'typescript'
type Props = {
boardTree?: BoardTree

View file

@ -64,10 +64,10 @@ class TableComponent extends React.Component<Props, State> {
const {board, cards, activeView} = boardTree
const titleRef = React.createRef<HTMLDivElement>()
let titleSortIcon = undefined
const titleSortOption = activeView.sortOptions.find(o => o.propertyId === Constants.titleColumnId)
let titleSortIcon
const titleSortOption = activeView.sortOptions.find((o) => o.propertyId === Constants.titleColumnId)
if (titleSortOption) {
titleSortIcon = titleSortOption.reversed ? <SortUpIcon /> : <SortDownIcon />
titleSortIcon = titleSortOption.reversed ? <SortUpIcon/> : <SortDownIcon/>
}
this.cardIdToRowMap.clear()
@ -161,10 +161,10 @@ class TableComponent extends React.Component<Props, State> {
filter((template) => activeView.visiblePropertyIds.includes(template.id)).
map((template) => {
const headerRef = React.createRef<HTMLDivElement>()
let sortIcon = undefined
const sortOption = activeView.sortOptions.find(o => o.propertyId === template.id)
let sortIcon
const sortOption = activeView.sortOptions.find((o) => o.propertyId === template.id)
if (sortOption) {
sortIcon = sortOption.reversed ? <SortUpIcon /> : <SortDownIcon />
sortIcon = sortOption.reversed ? <SortUpIcon/> : <SortDownIcon/>
}
return (<div

View file

@ -3,7 +3,8 @@
//
import React, {FC} from 'react'
import {injectIntl, IntlShape} from 'react-intl'
import { Constants } from '../constants'
import {Constants} from '../constants'
import mutator from '../mutator'
import {BoardTree} from '../viewModel/boardTree'

View file

@ -30,7 +30,8 @@ import FilterComponent from './filterComponent'
import './viewHeader.scss'
import {sendFlashMessage} from './flashMessages'
import { Constants } from '../constants'
import {Constants} from '../constants'
type Props = {
boardTree?: BoardTree

View file

@ -8,7 +8,7 @@ import {BoardTree} from '../viewModel/boardTree'
import mutator from '../mutator'
import {Utils} from '../utils'
import Menu from '../widgets/menu'
import { Constants } from '../constants'
import {Constants} from '../constants'
type Props = {
boardTree?: BoardTree

View file

@ -4,7 +4,7 @@ import {Board, IPropertyOption, IPropertyTemplate, MutableBoard} from '../blocks
import {BoardView, MutableBoardView} from '../blocks/boardView'
import {Card, MutableCard} from '../blocks/card'
import {CardFilter} from '../cardFilter'
import { Constants } from '../constants'
import {Constants} from '../constants'
import octoClient from '../octoClient'
import {IBlock, IMutableBlock} from '../blocks/block'
import {OctoUtils} from '../octoUtils'