Skip to content

Commit

Permalink
fix(hooks): correct position type on useViewUiPosition
Browse files Browse the repository at this point in the history
  • Loading branch information
steveoh committed Nov 19, 2024
1 parent c7ee996 commit d75aed8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/utah-design-system/src/components/HomeButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export const HomeButton = ({
initialExtent,
}: {
view: __esri.MapView;
position: __esri.UIAddComponent['position'];
position?: __esri.UIAddComponent['position'];
initialExtent?: __esri.Extent;
}) => {
const goHome = useDefaultExtent(view, initialExtent);
Expand Down
2 changes: 1 addition & 1 deletion packages/utilities/src/hooks/useViewUiPosition.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { useEffect, useRef } from 'react';

export default function useViewUiPosition(
view: __esri.MapView | null,
position: __esri.UIAddPosition,
position: __esri.UIAddComponent['position'],
) {
const me = useRef<HTMLDivElement | null>(null);

Expand Down

0 comments on commit d75aed8

Please sign in to comment.