Skip to content
This repository was archived by the owner on May 18, 2025. It is now read-only.

Commit 04db833

Browse files
committed
Fix typing and unused import
1 parent ede8712 commit 04db833

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/HtmlUtils.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ import { tryTransformPermalinkToLocalHref } from "./utils/permalinks/Permalinks"
3737
import { SHORTCODE_TO_EMOJI, getEmojiFromUnicode } from "./emoji";
3838
import ReplyThread from "./components/views/elements/ReplyThread";
3939
import { mediaFromMxc } from "./customisations/Media";
40-
import { highlight } from 'highlight.js';
4140

4241
linkifyMatrix(linkify);
4342

src/components/views/rooms/SearchResultTile.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ limitations under the License.
1616
*/
1717

1818
import React from 'react';
19+
import { SearchResult } from "matrix-js-sdk/src/models/search-result";
1920
import EventTile, { haveTileForEvent } from "./EventTile";
2021
import DateSeparator from '../messages/DateSeparator';
2122
import SettingsStore from "../../../settings/SettingsStore";
@@ -25,7 +26,7 @@ import { replaceableComponent } from "../../../utils/replaceableComponent";
2526

2627
interface IProps {
2728
// a matrix-js-sdk SearchResult containing the details of this result
28-
searchResult: any;
29+
searchResult: SearchResult;
2930
// a list of strings to be highlighted in the results
3031
searchHighlights?: string[];
3132
// href for the highlights in this result

0 commit comments

Comments
 (0)