Locking the current unit and sub section nav when we’re on gated content.

Will follow up with a “locked content” UI in the next commit.
This commit is contained in:
David Joy
2020-01-13 11:22:30 -05:00
parent afa4c51a13
commit d097617feb
6 changed files with 58 additions and 20 deletions

View File

@@ -18,7 +18,7 @@ export function useBlockAncestry(blockId) {
}, [blocks, blockId, loaded]);
}
export function useCourseStructure(courseId) {
export function useLoadCourseStructure(courseId) {
const { authenticatedUser } = useContext(AppContext);
const [blocks, setBlocks] = useState(null);