Skip to content

✨ Innovative and open-source visualization application that transforms various data formats, such as JSON, YAML, XML and CSV into interactive graphs.

feat: enable search on widget

AykutSarac9f801cd6f09b
diff --git a/src/features/editor/views/GraphView/ZoomControl.tsx b/src/features/editor/views/GraphView/ZoomControl.tsx
index ed985208..47eea3d7 100644
--- a/src/features/editor/views/GraphView/ZoomControl.tsx
+++ b/src/features/editor/views/GraphView/ZoomControl.tsx
@@ -6,7 +6,7 @@ import { LuFocus, LuMaximize, LuMinus, LuPlus } from "react-icons/lu";
import { SearchInput } from "../../Toolbar/SearchInput";
import useGraph from "./stores/useGraph";
-export const ZoomControl = ({ isWidget = false }) => {
+export const ZoomControl = () => {
const zoomIn = useGraph(state => state.zoomIn);
const zoomOut = useGraph(state => state.zoomOut);
const centerView = useGraph(state => state.centerView);
@@ -79,7 +79,7 @@ export const ZoomControl = ({ isWidget = false }) => {
<LuPlus />
</ActionIcon>
</ActionIcon.Group>
- {!isWidget && <SearchInput />}
+ <SearchInput />
</Flex>
);
};
diff --git a/src/features/editor/views/GraphView/index.tsx b/src/features/editor/views/GraphView/index.tsx
index 4c3f058b..3a43abfc 100644
--- a/src/features/editor/views/GraphView/index.tsx
+++ b/src/features/editor/views/GraphView/index.tsx
@@ -177,7 +177,7 @@ export const GraphView = ({ isWidget = false }: GraphProps) => {
<LoadingOverlay visible={debouncedLoading} />
{!isWidget && <OptionsMenu />}
{!isWidget && <SecureInfo />}
- <ZoomControl isWidget={isWidget} />
+ <ZoomControl />
<StyledEditorWrapper
$widget={isWidget}
onContextMenu={e => e.preventDefault()}