Spaces:
Running
Running
Commit ·
48e5b36
1
Parent(s): beb2627
refactor(frontend): use typed lucide-react root imports in student pages
Browse files
frontend/src/pages/Bookmarks.jsx
CHANGED
|
@@ -9,14 +9,7 @@ import { Card, CardContent } from '../components/ui/card'
|
|
| 9 |
import { Badge } from '../components/ui/badge'
|
| 10 |
import { Input } from '../components/ui/input'
|
| 11 |
import { Textarea } from '../components/ui/textarea'
|
| 12 |
-
import Bookmark from 'lucide-react
|
| 13 |
-
import BookmarkX from 'lucide-react/dist/esm/icons/bookmark-x'
|
| 14 |
-
import ChevronDown from 'lucide-react/dist/esm/icons/chevron-down'
|
| 15 |
-
import ChevronUp from 'lucide-react/dist/esm/icons/chevron-up'
|
| 16 |
-
import Search from 'lucide-react/dist/esm/icons/search'
|
| 17 |
-
import StickyNote from 'lucide-react/dist/esm/icons/sticky-note'
|
| 18 |
-
import X from 'lucide-react/dist/esm/icons/x'
|
| 19 |
-
import Check from 'lucide-react/dist/esm/icons/check'
|
| 20 |
import Spinner from '../components/shared/Spinner'
|
| 21 |
import MathText from '../components/shared/MathText'
|
| 22 |
import OptionImage from '../components/test/OptionImage'
|
|
|
|
| 9 |
import { Badge } from '../components/ui/badge'
|
| 10 |
import { Input } from '../components/ui/input'
|
| 11 |
import { Textarea } from '../components/ui/textarea'
|
| 12 |
+
import { Bookmark, BookmarkX, ChevronDown, ChevronUp, Search, StickyNote, X, Check } from 'lucide-react'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
import Spinner from '../components/shared/Spinner'
|
| 14 |
import MathText from '../components/shared/MathText'
|
| 15 |
import OptionImage from '../components/test/OptionImage'
|
frontend/src/pages/Dashboard.jsx
CHANGED
|
@@ -4,11 +4,7 @@ import Layout from '../components/shared/Layout'
|
|
| 4 |
import { useAuth } from '../context/AuthContext'
|
| 5 |
import useSWR from 'swr'
|
| 6 |
import { fetcher } from '../api/api'
|
| 7 |
-
import BookOpen from 'lucide-react
|
| 8 |
-
import Clock from 'lucide-react/dist/esm/icons/clock'
|
| 9 |
-
import Target from 'lucide-react/dist/esm/icons/target'
|
| 10 |
-
import ArrowRight from 'lucide-react/dist/esm/icons/arrow-right'
|
| 11 |
-
import CheckCircle from 'lucide-react/dist/esm/icons/check-circle'
|
| 12 |
import clsx from 'clsx'
|
| 13 |
import { SkeletonBlock, TestCardSkeleton } from '../components/shared/Skeletons'
|
| 14 |
import { Card, CardContent, CardHeader, CardTitle, CardDescription, CardFooter } from '@/components/ui/card'
|
|
|
|
| 4 |
import { useAuth } from '../context/AuthContext'
|
| 5 |
import useSWR from 'swr'
|
| 6 |
import { fetcher } from '../api/api'
|
| 7 |
+
import { BookOpen, Clock, Target, ArrowRight, CheckCircle } from 'lucide-react'
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
import clsx from 'clsx'
|
| 9 |
import { SkeletonBlock, TestCardSkeleton } from '../components/shared/Skeletons'
|
| 10 |
import { Card, CardContent, CardHeader, CardTitle, CardDescription, CardFooter } from '@/components/ui/card'
|
frontend/src/pages/Leaderboard.jsx
CHANGED
|
@@ -3,11 +3,7 @@ import { useParams, Link } from 'react-router-dom'
|
|
| 3 |
import Layout from '../components/shared/Layout'
|
| 4 |
import { fetcher } from '../api/api'
|
| 5 |
import useSWR from 'swr'
|
| 6 |
-
import Trophy from 'lucide-react
|
| 7 |
-
import ArrowLeft from 'lucide-react/dist/esm/icons/arrow-left'
|
| 8 |
-
import Medal from 'lucide-react/dist/esm/icons/medal'
|
| 9 |
-
import Crown from 'lucide-react/dist/esm/icons/crown'
|
| 10 |
-
import RotateCcw from 'lucide-react/dist/esm/icons/rotate-ccw'
|
| 11 |
import clsx from 'clsx'
|
| 12 |
import { LeaderboardSkeleton } from '../components/shared/Skeletons'
|
| 13 |
import { Card, CardContent } from '@/components/ui/card'
|
|
|
|
| 3 |
import Layout from '../components/shared/Layout'
|
| 4 |
import { fetcher } from '../api/api'
|
| 5 |
import useSWR from 'swr'
|
| 6 |
+
import { Trophy, ArrowLeft, Medal, Crown, RotateCcw } from 'lucide-react'
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
import clsx from 'clsx'
|
| 8 |
import { LeaderboardSkeleton } from '../components/shared/Skeletons'
|
| 9 |
import { Card, CardContent } from '@/components/ui/card'
|
frontend/src/pages/MyResults.jsx
CHANGED
|
@@ -3,8 +3,7 @@ import { Link } from 'react-router-dom'
|
|
| 3 |
import Layout from '../components/shared/Layout'
|
| 4 |
import useSWR from 'swr'
|
| 5 |
import { fetcher } from '../api/api'
|
| 6 |
-
import ClipboardList from 'lucide-react
|
| 7 |
-
import ArrowRight from 'lucide-react/dist/esm/icons/arrow-right'
|
| 8 |
import Spinner from '../components/shared/Spinner'
|
| 9 |
import { ResultCardSkeleton } from '../components/shared/Skeletons'
|
| 10 |
import { Card, CardContent } from '@/components/ui/card'
|
|
|
|
| 3 |
import Layout from '../components/shared/Layout'
|
| 4 |
import useSWR from 'swr'
|
| 5 |
import { fetcher } from '../api/api'
|
| 6 |
+
import { ClipboardList, ArrowRight } from 'lucide-react'
|
|
|
|
| 7 |
import Spinner from '../components/shared/Spinner'
|
| 8 |
import { ResultCardSkeleton } from '../components/shared/Skeletons'
|
| 9 |
import { Card, CardContent } from '@/components/ui/card'
|
frontend/src/pages/Result.jsx
CHANGED
|
@@ -2,20 +2,7 @@ import { useState, useMemo, memo, useCallback } from 'react'
|
|
| 2 |
import { Link, useNavigate } from 'react-router-dom'
|
| 3 |
import Layout from '../components/shared/Layout'
|
| 4 |
import { testAPI } from '../api/api'
|
| 5 |
-
import CheckCircle from 'lucide-react
|
| 6 |
-
import XCircle from 'lucide-react/dist/esm/icons/x-circle'
|
| 7 |
-
import MinusCircle from 'lucide-react/dist/esm/icons/minus-circle'
|
| 8 |
-
import ArrowLeft from 'lucide-react/dist/esm/icons/arrow-left'
|
| 9 |
-
import ChevronDown from 'lucide-react/dist/esm/icons/chevron-down'
|
| 10 |
-
import ChevronUp from 'lucide-react/dist/esm/icons/chevron-up'
|
| 11 |
-
import Trophy from 'lucide-react/dist/esm/icons/trophy'
|
| 12 |
-
import RotateCcw from 'lucide-react/dist/esm/icons/rotate-ccw'
|
| 13 |
-
import Medal from 'lucide-react/dist/esm/icons/medal'
|
| 14 |
-
import Bookmark from 'lucide-react/dist/esm/icons/bookmark'
|
| 15 |
-
import BookmarkCheck from 'lucide-react/dist/esm/icons/bookmark-check'
|
| 16 |
-
import Clock from 'lucide-react/dist/esm/icons/clock'
|
| 17 |
-
import TrendingUp from 'lucide-react/dist/esm/icons/trending-up'
|
| 18 |
-
import Download from 'lucide-react/dist/esm/icons/download'
|
| 19 |
import MathText from '../components/shared/MathText'
|
| 20 |
import OptionImage from '../components/test/OptionImage'
|
| 21 |
import toast from 'react-hot-toast'
|
|
|
|
| 2 |
import { Link, useNavigate } from 'react-router-dom'
|
| 3 |
import Layout from '../components/shared/Layout'
|
| 4 |
import { testAPI } from '../api/api'
|
| 5 |
+
import { CheckCircle, XCircle, MinusCircle, ArrowLeft, ChevronDown, ChevronUp, Trophy, RotateCcw, Medal, Bookmark, BookmarkCheck, Clock, TrendingUp, Download } from 'lucide-react'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
import MathText from '../components/shared/MathText'
|
| 7 |
import OptionImage from '../components/test/OptionImage'
|
| 8 |
import toast from 'react-hot-toast'
|
frontend/src/pages/Tests.jsx
CHANGED
|
@@ -5,12 +5,7 @@ import useSWR from 'swr'
|
|
| 5 |
import { fetcher } from '../api/api'
|
| 6 |
import { SUBJECTS, SERIES_LABELS, TYPE_LABELS } from '../utils/constants'
|
| 7 |
import { useTestNavigation } from '../hooks/useTestNavigation'
|
| 8 |
-
import Clock from 'lucide-react
|
| 9 |
-
import BookOpen from 'lucide-react/dist/esm/icons/book-open'
|
| 10 |
-
import Target from 'lucide-react/dist/esm/icons/target'
|
| 11 |
-
import ArrowRight from 'lucide-react/dist/esm/icons/arrow-right'
|
| 12 |
-
import ChevronRight from 'lucide-react/dist/esm/icons/chevron-right'
|
| 13 |
-
import CheckCircle from 'lucide-react/dist/esm/icons/check-circle'
|
| 14 |
import clsx from 'clsx'
|
| 15 |
import { TestCardSkeleton } from '../components/shared/Skeletons'
|
| 16 |
import { Card, CardContent, CardHeader, CardTitle, CardFooter } from '@/components/ui/card'
|
|
|
|
| 5 |
import { fetcher } from '../api/api'
|
| 6 |
import { SUBJECTS, SERIES_LABELS, TYPE_LABELS } from '../utils/constants'
|
| 7 |
import { useTestNavigation } from '../hooks/useTestNavigation'
|
| 8 |
+
import { Clock, BookOpen, Target, ArrowRight, ChevronRight, CheckCircle } from 'lucide-react'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
import clsx from 'clsx'
|
| 10 |
import { TestCardSkeleton } from '../components/shared/Skeletons'
|
| 11 |
import { Card, CardContent, CardHeader, CardTitle, CardFooter } from '@/components/ui/card'
|