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

@@ -3,7 +3,7 @@ import { camelCaseObject } from '@edx/frontend-platform';
import { getSubSectionMetadata, saveSubSectionPosition } from './api';
export function useSubSectionMetadata(courseId, subSectionId) {
export function useLoadSubSectionMetadata(courseId, subSectionId) {
const [metadata, setMetadata] = useState(null);
const [loaded, setLoaded] = useState(false);