Skip to content

Commit 7798dfc

Browse files
committed
feat(content): Implement edit category page
- Added EditCategoryPage - Passed categoryId to the page
1 parent fcdb273 commit 7798dfc

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
@@ -11,6 +11,7 @@ import 'package:ht_dashboard/authentication/view/authentication_page.dart';
1111
import 'package:ht_dashboard/authentication/view/email_code_verification_page.dart';
1212
import 'package:ht_dashboard/authentication/view/request_code_page.dart';
1313
import 'package:ht_dashboard/content_management/view/categories_page.dart';
14+
import 'package:ht_dashboard/content_management/view/edit_category_page.dart';
1415
import 'package:ht_dashboard/content_management/view/content_management_page.dart';
1516
import 'package:ht_dashboard/content_management/view/headlines_page.dart';
1617
import 'package:ht_dashboard/content_management/view/sources_page.dart';
@@ -191,9 +192,7 @@ GoRouter createRouter({
191192
name: Routes.editCategoryName,
192193
builder: (context, state) {
193194
final id = state.pathParameters['id']!;
194-
return PlaceholderCreatePage(
195-
title: 'Edit Category $id',
196-
); // Placeholder
195+
return EditCategoryPage(categoryId: id);
197196
},
198197
),
199198
GoRoute(

0 commit comments

Comments
 (0)