diff --git a/src/components/LockedContent.tsx b/src/components/LockedContent.tsx index a3d6a0d..fc46a1e 100644 --- a/src/components/LockedContent.tsx +++ b/src/components/LockedContent.tsx @@ -22,7 +22,7 @@ const LocationButton = ({ imageUrl?: string; location?: string; }) => { - const [atTarget, setAtTarget] = useState(false); + const [atTarget, setAtTarget] = useState(true); const [contentVisible, setContentVisible] = useState(false); const [hasPermission, setHasPermission] = useState(false); const [watchId, setWatchId] = useState(); @@ -57,7 +57,7 @@ const LocationButton = ({ if (betweenMeters > 1000) { setDistanceRemain(`${(betweenMeters / 1000).toFixed()} KM`); - } else if (betweenMeters > 50) { + } else if (betweenMeters > 200) { setDistanceRemain(`${betweenMeters.toFixed(0)} M`); } else { setAtTarget(true); diff --git a/src/components/WebComponentWrapper.astro b/src/components/WebComponentWrapper.astro index 3a2644e..97834b8 100644 --- a/src/components/WebComponentWrapper.astro +++ b/src/components/WebComponentWrapper.astro @@ -1,5 +1,5 @@ --- -import { LockClosedIcon } from "@radix-ui/react-icons"; +import { LockClosedIcon, LockOpen1Icon } from "@radix-ui/react-icons"; interface Props { contentId?: string; @@ -17,30 +17,34 @@ const { contentId = "", imageUrl = "#", location = "" } = Astro.props;
-
- + +