Removing unused code
This commit is contained in:
parent
24c66d6435
commit
bf24375d81
1 changed files with 0 additions and 13 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue