Skip to content

Commit

Permalink
fix: update links to match
Browse files Browse the repository at this point in the history
  • Loading branch information
FaithDaka committed Mar 1, 2024
1 parent c7fafc7 commit b3ca16c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion apps/picsa-apps/dashboard/src/app/app.routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export const appRoutes: Route[] = [

// unmatched routes fallback to home
{
path: 'crop',
path: 'crop-information',
loadChildren: () =>
import('./modules/crop-information/crop-information.module').then((m) => m.CropInformationModule),
},
Expand Down
1 change: 1 addition & 0 deletions apps/picsa-apps/dashboard/src/app/data/navLinks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ export const DASHBOARD_NAV_LINKS = [
{
label: 'Crop Information',
href: '/crop-information',
matIcon:'spa'
},
{
label: 'Monitoring Forms',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,6 @@ export class CropInformationPageComponent implements OnInit {
}

navigateToEntryPage() {
this.router.navigate(['/crop/entry']);
this.router.navigate(['/crop-information/entry']);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,6 @@ export class NewEntryPageComponent implements OnInit {
});
}
routeBack() {
this.router.navigate(['/crop']);
this.router.navigate(['/crop-information']);
}
}

0 comments on commit b3ca16c

Please sign in to comment.