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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user