Skip to content

Commit 1f9c3b8

Browse files
committed
fixed routes
1 parent 166618c commit 1f9c3b8

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

src/pages/DocsPage.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -430,9 +430,9 @@ export default function DocsPage() {
430430
<footer className="mt-24 pt-12 border-t border-white/10 flex flex-col md:flex-row justify-between items-center gap-6 text-white/40 text-sm">
431431
<p>&copy; {new Date().getFullYear()} ClerkTree Inc. All rights reserved.</p>
432432
<div className="flex gap-6">
433-
<a href="#" className="hover:text-white transition-colors">Privacy Policy</a>
434-
<a href="#" className="hover:text-white transition-colors">Terms of Service</a>
435-
<a href="#" className="hover:text-white transition-colors">Status</a>
433+
<Link to="/privacy-policy" className="hover:text-white transition-colors">Privacy Policy</Link>
434+
<Link to="/terms-of-service" className="hover:text-white transition-colors">Terms of Service</Link>
435+
<Link to="/security" className="hover:text-white transition-colors">Security</Link>
436436
</div>
437437
</footer>
438438
</main>

src/pages/Documents.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import React, { useState, useEffect } from 'react';
1+
import { useState, useEffect } from 'react';
2+
import { useNavigate } from 'react-router-dom';
23
import { FileCheck, Search, Filter, CheckCircle, XCircle, AlertCircle, MoreVertical, Download, History, Eye, User, Calendar, Clock, Shield, Sun, Moon } from 'lucide-react';
34
import { adminApi, API_BASE_URL } from '../config/api';
45
import { useLanguage } from '../contexts/LanguageContext';
@@ -41,6 +42,7 @@ interface GroupedDocument {
4142
}
4243

4344
const AdminDashboard = () => {
45+
const navigate = useNavigate();
4446
const [documents, setDocuments] = useState<Document[]>([]);
4547
const [selectedDocument, setSelectedDocument] = useState<any>(null);
4648
const [showDetails, setShowDetails] = useState(false);
@@ -531,7 +533,7 @@ const AdminDashboard = () => {
531533
<LanguageSwitcher isExpanded={true} />
532534
{/* Dashboard Link */}
533535
<button
534-
onClick={() => window.location.href = '/dashboard'}
536+
onClick={() => navigate('/dashboard')}
535537
className={`p-2 rounded-lg transition-all duration-200 ${isDarkMode
536538
? 'bg-purple-500/20 text-purple-300 hover:bg-purple-500/30 border border-purple-500/30'
537539
: 'bg-white text-gray-700 hover:bg-gray-100 border border-gray-200'

0 commit comments

Comments
 (0)