Skip to content

Commit 5696d0e

Browse files
committed
feat(router): update create category route to use CreateCategoryPage
1 parent 031367e commit 5696d0e

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

lib/router/router.dart

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,16 @@ import 'package:ht_dashboard/authentication/bloc/authentication_bloc.dart';
1010
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';
13+
import 'package:ht_dashboard/content_management/view/content_management_page.dart';
14+
import 'package:ht_dashboard/content_management/view/create_category_page.dart';
1315
import 'package:ht_dashboard/content_management/view/create_headline_page.dart';
14-
import 'package:ht_dashboard/content_management/view/categories_page.dart';
1516
import 'package:ht_dashboard/content_management/view/edit_category_page.dart';
17+
import 'package:ht_dashboard/content_management/view/edit_headline_page.dart';
1618
import 'package:ht_dashboard/content_management/view/edit_source_page.dart';
17-
import 'package:ht_dashboard/content_management/view/content_management_page.dart';
18-
import 'package:ht_dashboard/content_management/view/headlines_page.dart';
19-
import 'package:ht_dashboard/content_management/view/sources_page.dart';
2019
import 'package:ht_dashboard/dashboard/view/dashboard_page.dart';
2120
import 'package:ht_dashboard/router/routes.dart';
2221
import 'package:ht_dashboard/settings/view/settings_page.dart';
2322
import 'package:ht_dashboard/shared/widgets/placeholder_create_page.dart';
24-
import 'package:ht_dashboard/content_management/view/edit_headline_page.dart';
2523

2624
/// Creates and configures the GoRouter instance for the application.
2725
///
@@ -182,9 +180,7 @@ GoRouter createRouter({
182180
GoRoute(
183181
path: Routes.createCategory,
184182
name: Routes.createCategoryName,
185-
builder: (context, state) => const PlaceholderCreatePage(
186-
title: 'Create New Category',
187-
), // Placeholder
183+
builder: (context, state) => const CreateCategoryPage(),
188184
),
189185
GoRoute(
190186
path: Routes.editCategory,

0 commit comments

Comments
 (0)