Skip to content

Commit

Permalink
Revert "fix: Navigation GoRouter reorganized (#65)" (#68)
Browse files Browse the repository at this point in the history
This reverts commit 0256c7f.
  • Loading branch information
taorepoara authored Jan 9, 2023
1 parent 0256c7f commit c87828b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/navigator/common_navigator.dart
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class CommonNavigator {

static GoRoute changeLostPassword = GoRoute(
name: "change-lost",
path: "change-lost",
path: "/change-lost",
builder: (ctx, state) => PageGuard(
guards: [Guard.checkUnauthenticated],
child: ChangeLostPasswordPage(email: state.extra as String),
Expand All @@ -40,23 +40,23 @@ class CommonNavigator {
);
static GoRoute changePasswordConfirmation = GoRoute(
name: "change-confirmation",
path: "change-confirmation",
path: "/change-confirmation",
builder: (ctx, state) => PageGuard(
guards: [Guard.checkUnauthenticated],
child: ChangePasswordConfirmationPage(),
),
);
static GoRoute profile = GoRoute(
name: "profile",
path: "profile",
path: "/profile",
builder: (ctx, state) => PageGuard(
guards: [Guard.checkAuthenticated],
child: ProfilePage(),
),
);
static GoRoute login = GoRoute(
name: "login",
path: "sign",
path: "/sign",
builder: (ctx, state) => PageGuard(
guards: [Guard.checkUnauthenticated],
child: LoginPage(),
Expand All @@ -73,7 +73,7 @@ class CommonNavigator {
);
static GoRoute cgu = GoRoute(
name: "cgu",
path: "cgu",
path: "/cgu",
builder: (ctx, state) => PageGuard(
guards: [Guard.checkAuthenticated],
child: CguPage(),
Expand All @@ -92,7 +92,7 @@ class CommonNavigator {
);
static GoRoute userValidation = GoRoute(
name: "validation-user",
path: "validation-user",
path: "/validation-user",
builder: (ctx, state) => PageGuard(
guards: [
Guard.checkAuthenticated,
Expand Down

0 comments on commit c87828b

Please sign in to comment.