From 1f0046a8ee694106516a71afb4df143a5509e16d Mon Sep 17 00:00:00 2001 From: Yared Yemane Date: Wed, 15 Apr 2026 04:30:07 -0700 Subject: [PATCH] standardize loading indicators with shared spinner asset Replace ad-hoc Loader2 loading indicators with SpinnerIcon so loading states across content and notifications pages use the same Circular-indeterminate progress indicator. Made-with: Cursor --- .../content-management/AddNewLessonPage.tsx | 5 +++-- .../content-management/AddNewPracticePage.tsx | 7 +++--- .../content-management/HumanLanguagePage.tsx | 22 ++++++++++--------- src/pages/content-management/SpeakingPage.tsx | 4 ++-- .../notifications/CreateNotificationPage.tsx | 7 +++--- 5 files changed, 25 insertions(+), 20 deletions(-) diff --git a/src/pages/content-management/AddNewLessonPage.tsx b/src/pages/content-management/AddNewLessonPage.tsx index e272781..1f41850 100644 --- a/src/pages/content-management/AddNewLessonPage.tsx +++ b/src/pages/content-management/AddNewLessonPage.tsx @@ -1,5 +1,5 @@ import { useMemo, useState, type ChangeEvent } from "react" -import { ArrowLeft, ArrowRight, Check, GripVertical, Loader2, Plus, Rocket, Trash2, Upload } from "lucide-react" +import { ArrowLeft, ArrowRight, Check, GripVertical, Plus, Rocket, Trash2, Upload } from "lucide-react" import { Link, useLocation, useNavigate, useParams } from "react-router-dom" import { toast } from "sonner" import { addQuestionToSet, createLesson, createQuestion } from "../../api/courses.api" @@ -8,6 +8,7 @@ import { PracticeQuestionEditorFields } from "../../components/content-managemen import { Button } from "../../components/ui/button" import { Card } from "../../components/ui/card" import { Input } from "../../components/ui/input" +import { SpinnerIcon } from "../../components/ui/spinner-icon" import type { QuestionOption } from "../../types/course.types" type Step = 1 | 2 | 3 | 4 @@ -356,7 +357,7 @@ export function AddNewLessonPage() { />