File tree Expand file tree Collapse file tree 2 files changed +22
-1
lines changed
Expand file tree Collapse file tree 2 files changed +22
-1
lines changed Original file line number Diff line number Diff line change 66 SidebarMenuItem ,
77} from '@/components/ui/sidebar' ;
88import appointments from '@/routes/appointments' ;
9+ import { myRecord } from '@/routes/medicalRecords' ;
910import { NavItem , SharedData } from '@/types' ;
1011import { Link , usePage } from '@inertiajs/react' ;
1112import { ClipboardClockIcon , ClipboardListIcon , PillIcon } from 'lucide-react' ;
@@ -27,7 +28,7 @@ export function NavPatient() {
2728 } ,
2829 {
2930 title : 'My Medical Record' ,
30- href : 'placeholder_for_medical_records_url' ,
31+ href : myRecord ( ) . url ,
3132 icon : ClipboardListIcon ,
3233 } ,
3334 {
Original file line number Diff line number Diff line change 1+ import Layout from '@/layouts/app-layout' ;
2+ import { myRecord } from '@/routes/medicalRecords' ;
3+ import { BreadcrumbItem } from '@/types' ;
4+ import { Head } from '@inertiajs/react' ;
5+
6+ const breadcrumbs : BreadcrumbItem [ ] = [
7+ {
8+ title : 'My Medical Record' ,
9+ href : myRecord ( ) . url ,
10+ } ,
11+ ] ;
12+
13+ export default function MyRecord ( { medicalRecord } ) {
14+ return (
15+ < Layout breadcrumbs = { breadcrumbs } >
16+ < Head title = "My Medical Record" />
17+ < pre > { JSON . stringify ( medicalRecord , null , 2 ) } </ pre >
18+ </ Layout >
19+ ) ;
20+ }
You can’t perform that action at this time.
0 commit comments