feat: add 2FA, secure cookies and publishing tools
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import React from 'react';
|
||||
import React, { useState } from 'react';
|
||||
import { Link, Navigate, useParams } from 'react-router-dom';
|
||||
import { BookmarkSimpleIcon, CaretRightIcon, CheckIcon, CircleNotchIcon, PlayIcon } from '@phosphor-icons/react';
|
||||
import { Attachment, Course } from '../types';
|
||||
@@ -6,15 +6,13 @@ import { useCourse, useLessonProgress } from '../hooks/useCourse';
|
||||
import { useAuth } from '../context/AuthContext';
|
||||
import { useCatalog } from '../context/CatalogContext';
|
||||
import { ArtImage, CourseCard, Cover, courseFraming, useCoverImage } from '../components/catalog/Artwork';
|
||||
import { MaterialRow, useMaterialAction } from '../components/course/Materials';
|
||||
import { MaterialButton, MaterialRow, attachmentIcon, useMaterialAction } from '../components/course/Materials';
|
||||
import { CourseReviews } from '../components/course/CourseReviews';
|
||||
import { Avatar } from '../components/ui/Avatar';
|
||||
import { courseMeta, lessonDuration, plural } from '../lib/format';
|
||||
import { paths } from '../lib/routes';
|
||||
import { useSavedCourses } from '../hooks/useSavedCourses';
|
||||
import { useIsMobile } from '../hooks/useMediaQuery';
|
||||
import { MaterialButton, attachmentIcon } from '../components/course/Materials';
|
||||
import { useState } from 'react';
|
||||
|
||||
export type CourseMaterial = { attachment: Attachment; detail: string; lessonIndex?: number };
|
||||
|
||||
|
||||
Reference in New Issue
Block a user