mirror of
https://github.com/infinilabs/coco-app.git
synced 2025-12-16 19:47:43 +01:00
refactor: hide the search bar and filter bar on the plugin details page (#936)
This commit is contained in:
@@ -278,7 +278,10 @@ export const dispatchEvent = (
|
||||
};
|
||||
|
||||
export const visibleSearchBar = () => {
|
||||
const { viewExtensionOpened } = useSearchStore.getState();
|
||||
const { viewExtensionOpened, visibleExtensionDetail } =
|
||||
useSearchStore.getState();
|
||||
|
||||
if (visibleExtensionDetail) return false;
|
||||
|
||||
if (isNil(viewExtensionOpened)) return true;
|
||||
|
||||
@@ -288,7 +291,10 @@ export const visibleSearchBar = () => {
|
||||
};
|
||||
|
||||
export const visibleFilterBar = () => {
|
||||
const { viewExtensionOpened } = useSearchStore.getState();
|
||||
const { viewExtensionOpened, visibleExtensionDetail } =
|
||||
useSearchStore.getState();
|
||||
|
||||
if (visibleExtensionDetail) return false;
|
||||
|
||||
if (isNil(viewExtensionOpened)) return true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user