Skip to content

Commit 155b234

Browse files
committed
feat(router): connect edit headline page
- Connect route to EditHeadlinePage
1 parent f9ad105 commit 155b234

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/router/router.dart

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ import 'package:ht_dashboard/dashboard/view/dashboard_page.dart';
2020
import 'package:ht_dashboard/router/routes.dart';
2121
import 'package:ht_dashboard/settings/view/settings_page.dart';
2222
import 'package:ht_dashboard/shared/widgets/placeholder_create_page.dart';
23+
import 'package:ht_dashboard/content_management/view/edit_headline_page.dart';
2324

2425
/// Creates and configures the GoRouter instance for the application.
2526
///
@@ -176,9 +177,7 @@ GoRouter createRouter({
176177
name: Routes.editHeadlineName,
177178
builder: (context, state) {
178179
final id = state.pathParameters['id']!;
179-
return PlaceholderCreatePage(
180-
title: 'Edit Headline $id',
181-
); // Placeholder
180+
return EditHeadlinePage(headlineId: id);
182181
},
183182
),
184183
GoRoute(

0 commit comments

Comments
 (0)