diff --git a/frontend/src/components/BundleNav.jsx b/frontend/src/components/BundleNav.jsx index 73f09b7..a6a1342 100644 --- a/frontend/src/components/BundleNav.jsx +++ b/frontend/src/components/BundleNav.jsx @@ -1,5 +1,6 @@ import { useState, useRef } from 'react' import styles from './BundleNav.module.css' +import { useConfirm } from './useConfirm' async function resetProgress(scope, opts) { await fetch('/api/progress/reset', { @@ -17,6 +18,7 @@ export default function BundleNav({ const [startX, setStartX] = useState(0) const [scrollLeft, setScrollLeft] = useState(0) const [dragDist, setDragDist] = useState(0) + const { confirm, ConfirmUI } = useConfirm() const handleMouseDown = (e) => { if (!trackRef.current) return @@ -41,6 +43,7 @@ export default function BundleNav({ return ( <> + {ConfirmUI}