Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
hichri-louay committed Sep 26, 2023
1 parent b284ffa commit 356983f
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { CampaignDetailsContainerComponent } from './components/campaign-details
import { PublicPagesGuard } from '@core/services/public-pages.guard';

const routes: Routes = [
{
/*{
path: '',
component: CampaignDetailsContainerComponent,
children: [
Expand All @@ -25,7 +25,7 @@ const routes: Routes = [
component: RecoverGainsComponent
}
]
}
}*/
];

@NgModule({
Expand Down
16 changes: 15 additions & 1 deletion src/app/campaigns/campaigns-routing.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,27 @@ const routes: Routes = [
]
},
{
path:'campaign/:id',
component: CampaignDetailComponent
},
{
path: 'campaign/:id/verify-link',
component: VerifyLinkComponent,
canActivate: [AuthGuardService]
},
{
path: 'campaign/:id/recover-my-gains',
component: RecoverGainsComponent,
canActivate: [AuthGuardService]
},
/*{
path: 'campaign/:id',
loadChildren: () =>
import('./campaign-details/campaign-details.module').then(
(m) => m.CampaignDetailsModule
),
canLoad: [CanLoadPublicModule]
},
},*/
{
path: 'welcome',
component: FarmWelcomeComponent
Expand Down
2 changes: 2 additions & 0 deletions src/app/campaigns/campaigns.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ import { DraftPictureComponent } from './components/draft-picture/draft-picture.
import { CommonModule } from '@angular/common';
import { SocialsComponent } from './socials/socials.component';
import { SharedModule } from '@app/shared/shared.module';
import { CampaignDetailsModule } from './campaign-details/campaign-details.module';

@NgModule({
declarations: [
Expand Down Expand Up @@ -64,6 +65,7 @@ import { SharedModule } from '@app/shared/shared.module';
CommonModule,
CampaignsRoutingModule,
CampaignsSharedUiModule,
CampaignDetailsModule,
NgxTweetModule,
EffectsModule.forFeature([LinksListEffects]),
StoreModule.forFeature(
Expand Down

0 comments on commit 356983f

Please sign in to comment.