aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/PropertiesView.tsx
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2024-10-07 13:49:08 -0400
committerbobzel <zzzman@gmail.com>2024-10-07 13:49:08 -0400
commit827dd6aba9eefcd3beddbc246134cd6d6492fcf8 (patch)
treed3b9dfe328e00a313b750db4b5ad2c4084674e82 /src/client/views/PropertiesView.tsx
parent3137f422a004adef82124989280b40852a033afe (diff)
fixed import cycle by making addHotKey a prop
Diffstat (limited to 'src/client/views/PropertiesView.tsx')
-rw-r--r--src/client/views/PropertiesView.tsx3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/views/PropertiesView.tsx b/src/client/views/PropertiesView.tsx
index d0c47875f..715f079d8 100644
--- a/src/client/views/PropertiesView.tsx
+++ b/src/client/views/PropertiesView.tsx
@@ -50,6 +50,7 @@ interface PropertiesViewProps {
height: number;
styleProvider?: StyleProviderFuncType;
addDocTab: (doc: Doc, where: OpenWhere) => boolean;
+ addHotKey: (hotKey: string) => void;
}
@observer
@@ -1277,7 +1278,7 @@ export class PropertiesView extends ObservableReactComponent<PropertiesViewProps
return (
<PropertiesSection title="Filters" isOpen={this.openFilters} setIsOpen={action(bool => { this.openFilters = bool; })} onDoubleClick={this.CloseAll}>
<div className="propertiesView-content filters" style={{ position: 'relative', height: 'auto' }}>
- <FilterPanel Document={this.selectedDoc ?? Doc.ActiveDashboard!} />
+ <FilterPanel Document={this.selectedDoc ?? Doc.ActiveDashboard!} addHotKey={this._props.addHotKey}/>
</div>
</PropertiesSection>
); // prettier-ignore