feat: add documents to Lesson materials (#572)
* feat: Initial logic for the pdf upload * feat: uploa logic, translations and ui flow complete * chore:console log cleanup * feat: fixed upload issue and added cancel upload button * feat: fixing the download document ish * feat: All done and ready for use * feat: updated the document viewing logic * feat: some minor refactor * feat: added migration file * fix: dark mode, translations, restyling, --------- Co-authored-by: Rotimi Best <best@classroomio.com>
This commit is contained in:
co-authored by
Rotimi Best
parent
7a77bd6c79
commit
937f1d8155
@@ -265,6 +265,7 @@ export async function getMarks(courseId) {
|
||||
}
|
||||
|
||||
export async function fetchLesson(lessonId: Lesson['id']) {
|
||||
// TODO: add documents to the query
|
||||
const { data, error } = await supabase
|
||||
.from('lesson')
|
||||
.select(
|
||||
@@ -273,6 +274,7 @@ export async function fetchLesson(lessonId: Lesson['id']) {
|
||||
note,
|
||||
videos,
|
||||
slide_url,
|
||||
documents,
|
||||
call_url,
|
||||
totalExercises:exercise(count),
|
||||
totalComments:lesson_comment(count),
|
||||
|
||||
Reference in New Issue
Block a user