Removing unused code

This commit is contained in:
Jesús Espino 2021-03-27 08:41:24 +01:00
parent 24c66d6435
commit bf24375d81

View file

@ -29,16 +29,12 @@ type Props = {
}
type State = {
isSearching: boolean
shownCardId?: string
viewMenu: boolean
selectedCardIds: string[]
showFilter: boolean
}
class BoardComponent extends React.Component<Props, State> {
private backgroundRef = React.createRef<HTMLDivElement>()
private searchFieldRef = React.createRef<Editable>()
private keydownHandler = (e: KeyboardEvent) => {
if (e.target !== document.body) {
@ -71,10 +67,7 @@ class BoardComponent extends React.Component<Props, State> {
constructor(props: Props) {
super(props)
this.state = {
isSearching: Boolean(this.props.boardTree.getSearchText()),
viewMenu: false,
selectedCardIds: [],
showFilter: false,
}
}
@ -82,12 +75,6 @@ class BoardComponent extends React.Component<Props, State> {
return true
}
componentDidUpdate(prevPros: Props, prevState: State): void {
if (this.state.isSearching && !prevState.isSearching) {
this.searchFieldRef.current?.focus()
}
}
private showCardInUrl() {
const queryString = new URLSearchParams(window.location.search)
const cardId = queryString.get('c') || undefined