Skip to content

Commit 9f801cd

Browse files
committed
feat: enable search on widget
1 parent 9ee122b commit 9f801cd

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/features/editor/views/GraphView/ZoomControl.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { LuFocus, LuMaximize, LuMinus, LuPlus } from "react-icons/lu";
66
import { SearchInput } from "../../Toolbar/SearchInput";
77
import useGraph from "./stores/useGraph";
88

9-
export const ZoomControl = ({ isWidget = false }) => {
9+
export const ZoomControl = () => {
1010
const zoomIn = useGraph(state => state.zoomIn);
1111
const zoomOut = useGraph(state => state.zoomOut);
1212
const centerView = useGraph(state => state.centerView);
@@ -79,7 +79,7 @@ export const ZoomControl = ({ isWidget = false }) => {
7979
<LuPlus />
8080
</ActionIcon>
8181
</ActionIcon.Group>
82-
{!isWidget && <SearchInput />}
82+
<SearchInput />
8383
</Flex>
8484
);
8585
};

src/features/editor/views/GraphView/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ export const GraphView = ({ isWidget = false }: GraphProps) => {
177177
<LoadingOverlay visible={debouncedLoading} />
178178
{!isWidget && <OptionsMenu />}
179179
{!isWidget && <SecureInfo />}
180-
<ZoomControl isWidget={isWidget} />
180+
<ZoomControl />
181181
<StyledEditorWrapper
182182
$widget={isWidget}
183183
onContextMenu={e => e.preventDefault()}

0 commit comments

Comments
 (0)