Want to explore first?{' '}
- navigate('/corporate/login')}
className="text-purple-600 hover:text-purple-700 font-medium hover:underline"
>
@@ -258,7 +258,7 @@ export function LoginSelection() {
Click the buttons above to instantly access either dashboard. No credentials required - designed for easy testing and exploration of the KLC learning platform.
-
+
@@ -284,15 +284,15 @@ export function LoginSelection() {
- navigate('/contact')}
className="text-[16px] min-h-[44px] border-[#04045B] text-[#04045B] hover:bg-[#04045B]/10"
>
Contact Support
- navigate('/individual-webinars')}
className="text-[16px] min-h-[44px] border-[#04045B] text-[#04045B] hover:bg-[#04045B]/10"
>
@@ -313,7 +313,7 @@ export function LoginSelection() {
Experience world-class leadership development with proven results
-
+
27,000+
diff --git a/src/pages/MyCohort.tsx b/src/pages/MyCohort.tsx
index 0613ebc..519e4d0 100644
--- a/src/pages/MyCohort.tsx
+++ b/src/pages/MyCohort.tsx
@@ -1,7 +1,10 @@
import React, { useEffect } from 'react';
- const navigate = useNavigate();
+import { useNavigate } from 'react-router';
export function MyCohort() {
+
+ const navigate = useNavigate();
+
useEffect(() => {
// This is a deprecated page, redirect to home
navigate('/');
diff --git a/src/pages/NotFound.tsx b/src/pages/NotFound.tsx
index 4964d76..f0d4205 100644
--- a/src/pages/NotFound.tsx
+++ b/src/pages/NotFound.tsx
@@ -2,9 +2,11 @@ import React from 'react';
import { Button } from '../components/ui/button';
import { Card, CardContent } from '../components/ui/card';
import { ArrowLeft, Home, Search, HelpCircle } from 'lucide-react';
- const navigate = useNavigate();
+import { useNavigate } from 'react-router';
export function NotFound() {
+ const navigate = useNavigate();
+
const handleGoHome = () => {
navigate('/');
};
@@ -20,11 +22,11 @@ export function NotFound() {
404
-
+
Page Not Found
-
+
Sorry, we couldn't find the page you're looking for. The page may have been moved, deleted, or you may have entered an incorrect URL.
@@ -37,7 +39,7 @@ export function NotFound() {
Return to Home
-
+
Professional Webinars
-
+
navigate('/contact')}
className="flex items-center gap-3 p-3 text-left rounded-lg hover:bg-gray-50 transition-colors"
@@ -70,7 +72,7 @@ export function NotFound() {
Contact Support
-
+
navigate('/auth')}
className="flex items-center gap-3 p-3 text-left rounded-lg hover:bg-gray-50 transition-colors"
diff --git a/src/pages/OrderConfirmation.tsx b/src/pages/OrderConfirmation.tsx
index 394deb9..51620ef 100644
--- a/src/pages/OrderConfirmation.tsx
+++ b/src/pages/OrderConfirmation.tsx
@@ -1,7 +1,9 @@
import React, { useEffect } from 'react';
- const navigate = useNavigate();
+import { useNavigate } from 'react-router';
export function OrderConfirmation() {
+ const navigate = useNavigate();
+
useEffect(() => {
// This is a deprecated page, redirect to home
navigate('/');
diff --git a/src/pages/OrderFailed.tsx b/src/pages/OrderFailed.tsx
index 5b94f4a..c6d0eab 100644
--- a/src/pages/OrderFailed.tsx
+++ b/src/pages/OrderFailed.tsx
@@ -1,7 +1,9 @@
import React, { useEffect } from 'react';
- const navigate = useNavigate();
+import { useNavigate } from 'react-router';
export function OrderFailed() {
+ const navigate = useNavigate();
+
useEffect(() => {
// This is a deprecated page, redirect to home
navigate('/');
diff --git a/src/pages/OurExpertise.tsx b/src/pages/OurExpertise.tsx
index 6846d5d..8eabc19 100644
--- a/src/pages/OurExpertise.tsx
+++ b/src/pages/OurExpertise.tsx
@@ -1,7 +1,9 @@
import React, { useEffect } from 'react';
- const navigate = useNavigate();
+import { useNavigate } from 'react-router';
export function OurExpertise() {
+ const navigate = useNavigate();
+
useEffect(() => {
// This is a deprecated page, redirect to home
navigate('/');
diff --git a/src/pages/OurImpact.tsx b/src/pages/OurImpact.tsx
index 768283b..e64078a 100644
--- a/src/pages/OurImpact.tsx
+++ b/src/pages/OurImpact.tsx
@@ -1,7 +1,9 @@
import React, { useEffect } from 'react';
- const navigate = useNavigate();
+import { useNavigate } from 'react-router';
export function OurImpact() {
+ const navigate = useNavigate();
+
useEffect(() => {
// This is a deprecated page, redirect to home
navigate('/');
diff --git a/src/pages/OurTeam.tsx b/src/pages/OurTeam.tsx
index fe0c72f..1a8e2b3 100644
--- a/src/pages/OurTeam.tsx
+++ b/src/pages/OurTeam.tsx
@@ -1,7 +1,9 @@
import React, { useEffect } from 'react';
- const navigate = useNavigate();
+import { useNavigate } from 'react-router';
export function OurTeam() {
+ const navigate = useNavigate();
+
useEffect(() => {
// This is a deprecated page, redirect to home
navigate('/');
diff --git a/src/pages/OurVision.tsx b/src/pages/OurVision.tsx
index 9a45c0a..34d5fc3 100644
--- a/src/pages/OurVision.tsx
+++ b/src/pages/OurVision.tsx
@@ -1,7 +1,9 @@
import React, { useEffect } from 'react';
- const navigate = useNavigate();
+import { useNavigate } from 'react-router';
export function OurVision() {
+ const navigate = useNavigate();
+
useEffect(() => {
// This is a deprecated page, redirect to home
navigate('/');
diff --git a/src/pages/Privacy.tsx b/src/pages/Privacy.tsx
index 992227d..ec135f5 100644
--- a/src/pages/Privacy.tsx
+++ b/src/pages/Privacy.tsx
@@ -2,9 +2,11 @@ import React from 'react';
import { Button } from '../components/ui/button';
import { Card, CardContent, CardHeader, CardTitle } from '../components/ui/card';
import { ArrowLeft, Shield, Eye, Lock, FileText } from 'lucide-react';
- const navigate = useNavigate();
+import { useNavigate } from 'react-router';
export function Privacy() {
+ const navigate = useNavigate();
+
const handleBackNavigation = () => {
navigate('/');
};
@@ -55,15 +57,15 @@ export function Privacy() {
-
+
{/* Introduction */}
Introduction
- At Kautilya Leadership Centre (KLC), we are committed to protecting your privacy and personal information.
- This Privacy Policy explains how we collect, use, disclose, and safeguard your information when you use our
+ At Kautilya Leadership Centre (KLC), we are committed to protecting your privacy and personal information.
+ This Privacy Policy explains how we collect, use, disclose, and safeguard your information when you use our
learning platform and services.
@@ -74,7 +76,7 @@ export function Privacy() {
Information We Collect
-
+
Personal Information
@@ -110,7 +112,7 @@ export function Privacy() {
How We Use Your Information
-
+
Provide and improve our learning services
Personalize your learning experience
@@ -141,9 +143,9 @@ export function Privacy() {
Data Security
-
+
- We implement appropriate technical and organizational security measures to protect your personal information
+ We implement appropriate technical and organizational security measures to protect your personal information
against unauthorized access, alteration, disclosure, or destruction. These measures include:
-
+
{/* Introduction */}
Agreement to Terms
- By accessing and using the Kautilya Leadership Centre (KLC) learning platform, you agree to be bound by these
- Terms of Service and all applicable laws and regulations. If you do not agree with any of these terms, you are
+ By accessing and using the Kautilya Leadership Centre (KLC) learning platform, you agree to be bound by these
+ Terms of Service and all applicable laws and regulations. If you do not agree with any of these terms, you are
prohibited from using or accessing this site.
@@ -74,9 +76,9 @@ export function Terms() {
Use License
-
+
- Permission is granted to temporarily access the materials on KLC's learning platform for personal,
+ Permission is granted to temporarily access the materials on KLC's learning platform for personal,
non-commercial transitory viewing only. This is the grant of a license, not a transfer of title, and under this license you may not:
-
+
- The materials on KLC's platform are provided on an 'as is' basis. KLC makes no warranties, expressed or implied,
- and hereby disclaims all other warranties including, without limitation, implied warranties or conditions of
+ The materials on KLC's platform are provided on an 'as is' basis. KLC makes no warranties, expressed or implied,
+ and hereby disclaims all other warranties including, without limitation, implied warranties or conditions of
merchantability, fitness for a particular purpose, or non-infringement of intellectual property.
@@ -176,8 +178,8 @@ export function Terms() {
Limitation of Liability
- In no event shall KLC or its suppliers be liable for any damages (including, without limitation, damages for
- loss of data or profit, or due to business interruption) arising out of the use or inability to use the materials
+ In no event shall KLC or its suppliers be liable for any damages (including, without limitation, damages for
+ loss of data or profit, or due to business interruption) arising out of the use or inability to use the materials
on KLC's platform, even if KLC or an authorized representative has been notified of the possibility of such damage.
diff --git a/src/pages/WebinarDetail.tsx b/src/pages/WebinarDetail.tsx
index d8fff7d..9f294fe 100644
--- a/src/pages/WebinarDetail.tsx
+++ b/src/pages/WebinarDetail.tsx
@@ -1,7 +1,9 @@
import React, { useEffect } from 'react';
- const navigate = useNavigate();
+import { useNavigate } from 'react-router';
export function WebinarDetail() {
+ const navigate = useNavigate();
+
useEffect(() => {
// This is a deprecated page, redirect to home
navigate('/');
diff --git a/src/pages/WebinarListing.tsx b/src/pages/WebinarListing.tsx
index f5e8526..15702ed 100644
--- a/src/pages/WebinarListing.tsx
+++ b/src/pages/WebinarListing.tsx
@@ -1,7 +1,9 @@
import React, { useEffect } from 'react';
- const navigate = useNavigate();
+import { useNavigate } from 'react-router';
export function WebinarListing() {
+ const navigate = useNavigate();
+
useEffect(() => {
// This is a deprecated page, redirect to home
navigate('/');
diff --git a/src/pages/learner/CorporateDashboard.tsx b/src/pages/learner/CorporateDashboard.tsx
index 8e0109f..7fb67df 100644
--- a/src/pages/learner/CorporateDashboard.tsx
+++ b/src/pages/learner/CorporateDashboard.tsx
@@ -9,10 +9,10 @@ import { Separator } from '../../components/ui/separator';
import { Skeleton } from '../../components/ui/skeleton';
import { Alert, AlertDescription } from '../../components/ui/alert';
import { PieChart, Pie, Cell, ResponsiveContainer, Legend, Tooltip } from 'recharts';
-import {
- BookOpen,
- Clock,
- Trophy,
+import {
+ BookOpen,
+ Clock,
+ Trophy,
Calendar,
TrendingUp,
Play,
@@ -47,10 +47,10 @@ import {
MapPin
} from 'lucide-react';
import { ImageWithFallback } from '../../components/figma/ImageWithFallback';
-import globalMapImage from 'figma:asset/1b56e6afe31d5744d2e7a38d3e2f8c3ce78a90af.png';
+// import globalMapImage from 'figma:asset/1b56e6afe31d5744d2e7a38d3e2f8c3ce78a90af.png';
import { useNavigate } from 'react-router-dom';
- const navigate = useNavigate();
// Loading skeleton component for corporate dashboard
+const globalMapImage = 'https://images.unsplash.com/photo-1526778548025-fa2f459cd5c1?w=1600&auto=format&fit=crop&q=60'
function CorporateDashboardSkeleton() {
return (
@@ -148,7 +148,7 @@ function ConnectionStatus() {
You're currently offline. Some features may not be available.
- acc + goal.progress, 0) /
- teamGoals.reduce((acc, goal) => acc + goal.total, 0)) * 100
+ (teamGoals.reduce((acc, goal) => acc + goal.progress, 0) /
+ teamGoals.reduce((acc, goal) => acc + goal.total, 0)) * 100
);
return (
@@ -316,7 +316,7 @@ function TeamPerformanceOverview() {
-
+
{/* Overall Progress */}
@@ -334,13 +334,12 @@ function TeamPerformanceOverview() {
const Icon = goal.icon;
const progressPercentage = Math.round((goal.progress / goal.total) * 100);
const isCompleted = goal.progress >= goal.total;
-
+
return (
-
@@ -381,6 +380,7 @@ function TeamPerformanceOverview() {
// Corporate Analytics component
function CorporateAnalytics() {
+ const navigate = useNavigate();
const analyticsData = [
{ name: 'Completed', value: 68, color: '#21A36A' },
{ name: 'In Progress', value: 25, color: '#F8C301' },
@@ -419,8 +419,8 @@ function CorporateAnalytics() {
Team Analytics
-
navigate('/library?view=corporate')}
className="text-base h-auto p-0 text-primary hover:text-primary/80"
@@ -429,7 +429,7 @@ function CorporateAnalytics() {
-
+
{/* Top Statistics - 2x2 Grid */}
@@ -489,7 +489,7 @@ function CorporateAnalytics() {
} />
-
+
{/* Center Text */}
@@ -504,7 +504,7 @@ function CorporateAnalytics() {
{/* Bottom Button */}
- navigate('/library?view=corporate')}
className="w-full text-base h-11"
@@ -520,6 +520,7 @@ function CorporateAnalytics() {
// Corporate Assigned Training component
function AssignedTraining() {
+ const navigate = useNavigate();
const assignments = [
{
id: '1',
@@ -619,8 +620,8 @@ function AssignedTraining() {
Assigned Training
-
navigate('/library?view=corporate')}
className="text-base h-10"
@@ -629,16 +630,15 @@ function AssignedTraining() {
-
+
{/* Assignments Grid */}
{assignments.map((assignment) => (
-
navigate(`/library?view=corporate&courseId=${assignment.id}&tab=overview`)}
>
{/* Course Image */}
@@ -650,23 +650,21 @@ function AssignedTraining() {
/>
{/* Category Badge Overlay */}
-
{assignment.category}
{/* Deadline Badge Overlay */}
-
+
Due: {assignment.deadline}
@@ -701,7 +699,7 @@ function AssignedTraining() {
{new Date(assignment.dueDate).toLocaleDateString()}
-
+
{/* Assignment Metadata and Action - Auto-positioned at bottom */}
@@ -709,16 +707,16 @@ function AssignedTraining() {
{assignment.duration}
-
{assignment.status === 'urgent' ? 'Urgent' : 'Assigned'}
-
+
{/* Action Button */}
-
Team Leaderboard
- navigate('/leaderboard?view=corporate')}
className="text-base h-10 border-2 border-brand-navy/15 text-brand-navy/80 hover:bg-brand-navy/3 font-semibold"
@@ -773,22 +772,20 @@ function TeamLeaderboard() {
{teamData.map((entry) => (
-
-
+ entry.rank === 3 ? 'bg-gradient-to-br from-amber-600 to-amber-700 text-white' :
+ entry.isCurrentUser ? 'bg-gradient-to-br from-brand-navy to-brand-navy/80 text-white' :
+ 'bg-gradient-to-br from-gray-200 to-gray-300 text-gray-600'
+ }`}>
{entry.rank}
@@ -811,10 +808,9 @@ function TeamLeaderboard() {
-
-
+
+
#{entry.rank}
@@ -898,7 +894,7 @@ function RecentActivity() {
{activities.map((activity) => {
const Icon = activity.icon;
return (
-
@@ -928,73 +924,73 @@ function RecentActivity() {
// Global Learner Map component - Full width heatmap
function GlobalLearnerMap() {
const learnersByCountry = [
- {
- country: 'Romania',
- learners: 55760,
- percentage: 21.2,
+ {
+ country: 'Romania',
+ learners: 55760,
+ percentage: 21.2,
color: '#04045B',
flag: '🇷🇴'
},
- {
- country: 'Australia',
- learners: 60374,
- percentage: 22.9,
+ {
+ country: 'Australia',
+ learners: 60374,
+ percentage: 22.9,
color: '#04045B',
flag: '🇦🇺'
},
- {
- country: 'Russia',
- learners: 37556,
- percentage: 17,
+ {
+ country: 'Russia',
+ learners: 37556,
+ percentage: 17,
color: '#04045B',
flag: '🇷🇺'
},
- {
- country: 'Ireland',
- learners: 32123,
- percentage: 14,
+ {
+ country: 'Ireland',
+ learners: 32123,
+ percentage: 14,
color: '#F8C301',
flag: '🇮🇪'
},
- {
- country: 'Ukraine',
- learners: 30589,
- percentage: 13,
+ {
+ country: 'Ukraine',
+ learners: 30589,
+ percentage: 13,
color: '#F8C301',
flag: '🇺🇦'
},
- {
- country: 'USA',
- learners: 24544,
- percentage: 12.8,
+ {
+ country: 'USA',
+ learners: 24544,
+ percentage: 12.8,
color: '#26231A',
flag: '🇺🇸'
},
- {
- country: 'Germany',
- learners: 23787,
- percentage: 12.8,
+ {
+ country: 'Germany',
+ learners: 23787,
+ percentage: 12.8,
color: '#26231A',
flag: '🇩🇪'
},
- {
- country: 'Argentina',
- learners: 18245,
- percentage: 8.9,
+ {
+ country: 'Argentina',
+ learners: 18245,
+ percentage: 8.9,
color: '#6B7280',
flag: '🇦🇷'
},
- {
- country: 'Spain',
- learners: 12374,
- percentage: 3.7,
+ {
+ country: 'Spain',
+ learners: 12374,
+ percentage: 3.7,
color: '#6B7280',
flag: '🇪🇸'
},
- {
- country: 'Brazil',
- learners: 12374,
- percentage: 3.7,
+ {
+ country: 'Brazil',
+ learners: 12374,
+ percentage: 3.7,
color: '#6B7280',
flag: '🇧🇷'
}
@@ -1019,8 +1015,8 @@ function GlobalLearnerMap() {
-
@@ -1031,7 +1027,7 @@ function GlobalLearnerMap() {
-
+
{/* Left Column - Country Statistics */}
@@ -1043,10 +1039,10 @@ function GlobalLearnerMap() {
Distribution of learners by country
-
+
{learnersByCountry.map((country, index) => (
-
{country.flag}
-
@@ -1065,7 +1061,7 @@ function GlobalLearnerMap() {
-
+
@@ -1076,9 +1072,9 @@ function GlobalLearnerMap() {
-
-
+
{/* Overlay heatmap dots for major countries */}
{/* Romania - Eastern Europe */}
-
-
+
{/* Australia - Oceania */}
-
-
+
{/* Russia - Northern Asia */}
-
-
+
{/* Ireland - Western Europe */}
-
-
+
{/* Ukraine - Eastern Europe */}
-
-
+
{/* USA - North America */}
-
-
+
{/* Germany - Central Europe */}
-
-
+
{/* Argentina - South America */}
-
-
+
{/* Spain - Western Europe */}
-
-
+
{/* Brazil - South America */}
-
-
+
{/* Right Column - Assigned Training */}
diff --git a/src/pages/learner/Library.tsx b/src/pages/learner/Library.tsx
index 74a2be1..d116037 100644
--- a/src/pages/learner/Library.tsx
+++ b/src/pages/learner/Library.tsx
@@ -53,8 +53,8 @@ function LibrarySkeleton() {
export function Library({ userType = 'individual' }: LibraryProps) {
const [isLoading, setIsLoading] = useState(true);
const [courses] = useState
(getCoursesData(userType));
- const navigate = useNavigate();
-
+ const navigate = useNavigate();
+
// Filter states
const [searchQuery, setSearchQuery] = useState('');
const [selectedCategory, setSelectedCategory] = useState('All Categories');
@@ -89,9 +89,9 @@ export function Library({ userType = 'individual' }: LibraryProps) {
const filteredCourses = courses.filter(course => {
// Search filter
if (searchQuery && !course.title.toLowerCase().includes(searchQuery.toLowerCase()) &&
- !course.description.toLowerCase().includes(searchQuery.toLowerCase()) &&
- !course.instructor.name.toLowerCase().includes(searchQuery.toLowerCase()) &&
- !course.tags.some(tag => tag.toLowerCase().includes(searchQuery.toLowerCase()))) {
+ !course.description.toLowerCase().includes(searchQuery.toLowerCase()) &&
+ !course.instructor.name.toLowerCase().includes(searchQuery.toLowerCase()) &&
+ !course.tags.some(tag => tag.toLowerCase().includes(searchQuery.toLowerCase()))) {
return false;
}
@@ -192,7 +192,7 @@ export function Library({ userType = 'individual' }: LibraryProps) {
Leadership Development Library
- {userType === 'corporate'
+ {userType === 'corporate'
? 'Access your assigned courses and explore additional leadership development opportunities'
: 'Discover and enroll in courses designed to advance your leadership journey'
}
@@ -251,11 +251,10 @@ export function Library({ userType = 'individual' }: LibraryProps) {
setActiveTab(tab.value)}
- className={`flex-1 px-4 py-2.5 text-[16px] font-semibold rounded-full transition-all duration-300 ease-in-out focus:outline-none focus:ring-0 active:outline-none ${
- activeTab === tab.value
+ className={`flex-1 px-4 py-2.5 text-[16px] font-semibold rounded-full transition-all duration-300 ease-in-out focus:outline-none focus:ring-0 active:outline-none ${activeTab === tab.value
? 'bg-white text-[#111827] shadow-lg backdrop-blur-sm border border-white/50'
: 'text-[#6B7280] hover:text-[#111827] hover:bg-white/60 hover:shadow-md'
- }`}
+ }`}
>
{tab.label}
@@ -278,7 +277,7 @@ export function Library({ userType = 'individual' }: LibraryProps) {
: 'No courses are available in this category.'}
{(searchQuery || selectedCategory !== 'All Categories' || selectedLevel !== 'All Levels') && (
- {
setSearchQuery('');
@@ -300,11 +299,11 @@ export function Library({ userType = 'individual' }: LibraryProps) {
- {activeTab === 'all' ? 'All Leadership Courses' :
- activeTab === 'in-progress' ? 'In Progress' :
- activeTab === 'completed' ? 'Completed Courses' :
- activeTab === 'bookmarked' ? 'Bookmarked Courses' :
- 'Assigned Courses'}
+ {activeTab === 'all' ? 'All Leadership Courses' :
+ activeTab === 'in-progress' ? 'In Progress' :
+ activeTab === 'completed' ? 'Completed Courses' :
+ activeTab === 'bookmarked' ? 'Bookmarked Courses' :
+ 'Assigned Courses'}
({filteredCourses.length})
diff --git a/src/pages/services/Consulting.tsx b/src/pages/services/Consulting.tsx
index 6645666..b40f5ff 100644
--- a/src/pages/services/Consulting.tsx
+++ b/src/pages/services/Consulting.tsx
@@ -1,8 +1,9 @@
import React, { useEffect } from 'react';
import { useNavigate } from 'react-router-dom';
// import { navigate } from '../../components/Router';
- const navigate = useNavigate();
export function Consulting() {
+ const navigate = useNavigate();
+
useEffect(() => {
// This is a deprecated page, redirect to home
navigate('/');
diff --git a/src/pages/services/CultureCompetence.tsx b/src/pages/services/CultureCompetence.tsx
index f455771..97374aa 100644
--- a/src/pages/services/CultureCompetence.tsx
+++ b/src/pages/services/CultureCompetence.tsx
@@ -1,9 +1,10 @@
import React, { useEffect } from 'react';
import { useNavigate } from 'react-router-dom';
// import { navigate } from '../../components/Router';
- const navigate = useNavigate();
export function CultureCompetence() {
+ const navigate = useNavigate();
+
useEffect(() => {
// This is a deprecated page, redirect to home
navigate('/');
diff --git a/src/pages/services/ExecutiveCoaching.tsx b/src/pages/services/ExecutiveCoaching.tsx
index c0b7e9c..3f2e32d 100644
--- a/src/pages/services/ExecutiveCoaching.tsx
+++ b/src/pages/services/ExecutiveCoaching.tsx
@@ -1,9 +1,10 @@
import React, { useEffect } from 'react';
import { useNavigate } from 'react-router-dom';
// import { navigate } from '../../components/Router';
- const navigate = useNavigate();
export function ExecutiveCoaching() {
+ const navigate = useNavigate();
+
useEffect(() => {
// This is a deprecated page, redirect to home
navigate('/');
diff --git a/src/pages/services/LeadershipDevelopment.tsx b/src/pages/services/LeadershipDevelopment.tsx
index c1ae9c6..903608b 100644
--- a/src/pages/services/LeadershipDevelopment.tsx
+++ b/src/pages/services/LeadershipDevelopment.tsx
@@ -1,8 +1,9 @@
import React, { useEffect } from 'react';
import { useNavigate } from 'react-router-dom';
// import { navigate } from '../../components/Router';
- const navigate = useNavigate();
export function LeadershipDevelopment() {
+ const navigate = useNavigate();
+
useEffect(() => {
// This is a deprecated page, redirect to home
navigate('/');
diff --git a/src/pages/services/LearningFacility.tsx b/src/pages/services/LearningFacility.tsx
index 4884376..4434692 100644
--- a/src/pages/services/LearningFacility.tsx
+++ b/src/pages/services/LearningFacility.tsx
@@ -1,9 +1,10 @@
import React, { useEffect } from 'react';
import { useNavigate } from 'react-router-dom';
// import { navigate } from '../../components/Router';
- const navigate = useNavigate();
export function LearningFacility() {
+ const navigate = useNavigate();
+
useEffect(() => {
// This is a deprecated page, redirect to home
navigate('/');
diff --git a/src/pages/services/ManagementDevelopment.tsx b/src/pages/services/ManagementDevelopment.tsx
index 4840d6f..78d1294 100644
--- a/src/pages/services/ManagementDevelopment.tsx
+++ b/src/pages/services/ManagementDevelopment.tsx
@@ -1,9 +1,10 @@
import React, { useEffect } from 'react';
import { useNavigate } from 'react-router-dom';
// import { navigate } from '../../components/Router';
- const navigate = useNavigate();
export function ManagementDevelopment() {
+ const navigate = useNavigate();
+
useEffect(() => {
// This is a deprecated page, redirect to home
navigate('/');
diff --git a/src/types/images.d.ts b/src/types/images.d.ts
new file mode 100644
index 0000000..8f5b633
--- /dev/null
+++ b/src/types/images.d.ts
@@ -0,0 +1,21 @@
+declare module '*.png' {
+ const src: string;
+ export default src;
+}
+
+declare module '*.jpg' {
+ const src: string;
+ export default src;
+}
+
+declare module '*.jpeg' {
+ const src: string;
+ export default src;
+}
+
+declare module '*.svg' {
+ const src: string;
+ export default src;
+}
+
+