diff --git a/src/components/CourseList/index.js b/src/components/CourseList/index.js index b338d4d..9ad496d 100644 --- a/src/components/CourseList/index.js +++ b/src/components/CourseList/index.js @@ -4,23 +4,23 @@ const CourseChapter = ({ courseTitle, lessonName, grade, chapters }) => { const [selectedLesson, setSelectedLesson] = useState(null); return ( -
+
{/* top */}
-

{courseTitle}

+

{courseTitle}

- {lessonName} - {grade} + {lessonName} + {grade}
{/* divider */} -
+
{/* course title */} {chapters.map((chapter, index) => (
-
-

{chapter.title}

- {chapter.duration} +
+

{chapter.title}

+ {chapter.duration}
{/* course lessons */} {chapter.lessons.map((lesson, i) => ( @@ -35,22 +35,22 @@ const CourseChapter = ({ courseTitle, lessonName, grade, chapters }) => { >
{Number(i) !== chapter.lessons.length - 1 && ( )}
{/* left div content */}
setSelectedLesson(lesson)} onClick={() => setSelectedLesson(selectedLesson === lesson ? null : lesson) @@ -60,13 +60,13 @@ const CourseChapter = ({ courseTitle, lessonName, grade, chapters }) => {

{lesson.title}

{lesson.duration} @@ -74,13 +74,13 @@ const CourseChapter = ({ courseTitle, lessonName, grade, chapters }) => { {/* divider */}
{/* bottom */} {lesson.play} diff --git a/src/components/CurrentDateTime/CurrentDateShamsi/index.js b/src/components/CurrentDateTime/CurrentDateShamsi/index.js index 60a3d4d..68df75e 100644 --- a/src/components/CurrentDateTime/CurrentDateShamsi/index.js +++ b/src/components/CurrentDateTime/CurrentDateShamsi/index.js @@ -15,8 +15,8 @@ const CurrentDateShamsi = ({ color, fontSize }) => { const weekday = date.toLocaleDateString("fa-IR", option2); return ( -

- {weekday} {todayDate} +

+ {weekday} {todayDate}

); }; @@ -24,6 +24,5 @@ const CurrentDateShamsi = ({ color, fontSize }) => { export default CurrentDateShamsi; CurrentDateShamsi.defaultProps = { - color: "text-red-600", fontSize: "text-lg", }; diff --git a/src/components/CurrentDateTime/CurrentTime/index.js b/src/components/CurrentDateTime/CurrentTime/index.js index 1881fe7..2561a79 100644 --- a/src/components/CurrentDateTime/CurrentTime/index.js +++ b/src/components/CurrentDateTime/CurrentTime/index.js @@ -1,18 +1,17 @@ import React from "react"; -const CurrentTime = ({ color, fontSize }) => { +const CurrentTime = ({ fontSize }) => { const today = new Date(), time = today.getHours() + ":" + today.getMinutes() + ":" + today.getSeconds(); { console.log(time); } - return

{time}

; + return

{time}

; }; export default CurrentTime; CurrentTime.defaultProps = { - color: "text-red-600", fontSize: "text-lg", }; diff --git a/src/components/CurrentDateTime/index.js b/src/components/CurrentDateTime/index.js index 4a26595..9d834f4 100644 --- a/src/components/CurrentDateTime/index.js +++ b/src/components/CurrentDateTime/index.js @@ -15,7 +15,7 @@ function CurrentDateTime() { return (