) => void,
};
type State = {
+query: string,
@@ -144,6 +146,9 @@
/>
{clearQueryButton}
+
+
+
{filters}
@@ -384,8 +389,12 @@
};
}
-const ConnectedFilterPanel: React.ComponentType<{}> = React.memo<{}>(
- function ConnectedFilterPanel(): React.Node {
+type ConnectedFilterPanelProps = {
+ +toggleFilters: (event: SyntheticEvent) => void,
+};
+
+const ConnectedFilterPanel: React.ComponentType = React.memo(
+ function ConnectedFilterPanel(props: ConnectedFilterPanelProps): React.Node {
const filteredThreadIDs = useSelector(filteredThreadIDsSelector);
const filteredCommunityThreadIDs = useSelector(
filterThreadIDsBelongingToCommunitySelector,
@@ -405,6 +414,7 @@
includeDeleted={includeDeleted}
dispatch={dispatch}
pushModal={modalContext.pushModal}
+ toggleFilters={props.toggleFilters}
/>
);
},
diff --git a/web/theme.css b/web/theme.css
--- a/web/theme.css
+++ b/web/theme.css
@@ -206,6 +206,7 @@
--filters-button-bg: var(--shades-black-100);
--filters-button-border: var(--shades-black-80);
--filters-button-hover-bg: var(--shades-black-90);
+ --filter-panel-fg: var(--shades-black-60);
--topbar-button-bg-hover: var(--shades-black-80);
--topbar-button-fg: var(--shades-white-60);
}