in frontend/app/SearchComponent.tsx [163:199]
render() {
return (
<div className="windowpanel">
<SearchComponentContext.Provider value={{ vaultId: this.state.vaultId, vaultIdUpdated: this.vaultIdUpdated}}>
<SearchBarFile
searchUrlChanged={(newUrl) => {
if (!newUrl.includes("/undefined/")) {
this.newSearch(newUrl);
}
}}
/>
<span
style={{
float: "right",
marginRight: "2em",
display: this.state.searching ? "inline-block" : "none",
}}
>
Loaded {this.state.fileEntries?.length}...
</span>
<ResultsPanel
entries={this.state.fileEntries ?? []}
previewRequestedCb={this.previewRequested}
projectClicked={this.projectClicked}
/>
{this.state.requestedPreview ? (
<PopupPreview
oid={this.state.requestedPreview}
dialogClose={this.previewClosed}
/>
) : (
""
)}
</SearchComponentContext.Provider>
</div>
);
}