Extract SearchScope and SearchInfo into Searching (#12698)

* Extract SearchScope and SearchInfo into Searching

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* delint

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* delint

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Fix test

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Comments

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

---------

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Michael Telatynski 2024-06-26 11:59:04 +01:00 committed by GitHub
parent 7a81470558
commit 72475240ec
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 61 additions and 31 deletions

View file

@ -17,8 +17,9 @@ limitations under the License.
import React from "react";
import { fireEvent, render } from "@testing-library/react";
import SearchBar, { SearchScope } from "../../../../src/components/views/rooms/SearchBar";
import SearchBar from "../../../../src/components/views/rooms/SearchBar";
import { KeyBindingAction } from "../../../../src/accessibility/KeyboardShortcuts";
import { SearchScope } from "../../../../src/Searching";
let mockCurrentEvent = KeyBindingAction.Enter;