diff --git a/frontend/src/core/constants/path.ts b/frontend/src/core/constants/path.ts
index 6786b63..199ee37 100644
--- a/frontend/src/core/constants/path.ts
+++ b/frontend/src/core/constants/path.ts
@@ -1,5 +1,7 @@
export const ROUTE = {
HOME: '/',
+ LAW_LIBRARY: '/law-library',
+ LAW_DETAIL: '/law-library/:id',
AUTH: {
LOGIN: '/login',
REGISTER: '/register',
diff --git a/frontend/src/hooks/routes/use-router-element.tsx b/frontend/src/hooks/routes/use-router-element.tsx
index 8750285..ca2eaa7 100644
--- a/frontend/src/hooks/routes/use-router-element.tsx
+++ b/frontend/src/hooks/routes/use-router-element.tsx
@@ -37,6 +37,8 @@ const User = lazy(() => import('@/pages/users/user/User'))
const LawyerList = lazy(() => import('@/pages/users/lawyer/LawyerList'))
const LawyerProfile = lazy(() => import('@/pages/users/lawyer/LawyerProfile'))
const Appointments = lazy(() => import('@/pages/users/appointments/Appointments'))
+const LawLibraryPage = lazy(() => import('@/pages/law-search/LawLibraryPage'))
+const LawDetail = lazy(() => import('@/pages/law-search/LawDetail'))
// Lawyer Lazy loaded components
const LawyerDashboard = lazy(() => import('@/pages/lawyers/dashboard/LawyerDashboard'))
@@ -45,6 +47,7 @@ const LawyerMessages = lazy(() => import('@/pages/lawyers/messages/LawyerMessage
const LawyerProfileEdit = lazy(() => import('@/pages/lawyers/profile/LawyerProfileEdit'))
const LawyerSettings = lazy(() => import('@/pages/lawyers/setting/LawyerSettings'))
+
export default function useRoutesElements() {
const location = useLocation()
const { isAuthenticated } = useAuth()
@@ -58,6 +61,14 @@ export default function useRoutesElements() {
{!isAuthenticated ? (
}>
} />
+ }
+ />
+ }
+ />
) : (
}>
diff --git a/frontend/src/pages/home/components/hero-section.tsx b/frontend/src/pages/home/components/hero-section.tsx
index 1edd167..b93bb0f 100644
--- a/frontend/src/pages/home/components/hero-section.tsx
+++ b/frontend/src/pages/home/components/hero-section.tsx
@@ -35,7 +35,7 @@ export const HeroSection = () => {
-