X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=resources%2Fjs%2Fcomponents%2Fmap%2FButtons.js;h=fdffe92cdbfd57b75f7daeb14f6d7e7fb79c765c;hb=f1c8c3cc53a09d1c261875d2f482b6e19bc48a9a;hp=b43fc0e64d8c3d9a772bbbfca408ad1536f8d59a;hpb=18424fc6de2fc902ee2b2d3143955081263adff4;p=alttp.git diff --git a/resources/js/components/map/Buttons.js b/resources/js/components/map/Buttons.js index b43fc0e..fdffe92 100644 --- a/resources/js/components/map/Buttons.js +++ b/resources/js/components/map/Buttons.js @@ -5,42 +5,21 @@ import { useTranslation } from 'react-i18next'; import { useOpenSeadragon } from './OpenSeadragon'; const Buttons = () => { - const { viewer } = useOpenSeadragon(); + const { activeMap, setActiveMap } = useOpenSeadragon(); const { t } = useTranslation(); - const goToPage = React.useCallback((p) => { - if (viewer) viewer.goToPage(p); - }, [viewer]); - return