diff --git a/dojo-front/dojo-front/src/app/app-routing.module.ts b/dojo-front/dojo-front/src/app/app-routing.module.ts index a8776b1..9c4a0da 100644 --- a/dojo-front/dojo-front/src/app/app-routing.module.ts +++ b/dojo-front/dojo-front/src/app/app-routing.module.ts @@ -3,6 +3,8 @@ import { RouterModule, Routes } from '@angular/router'; import { AuthGuard } from 'src/shared/guard/auth.guard'; import { HomeComponent } from './home/home.component'; import { LoginComponent } from './login/login.component'; +import {InvestComponent} from "./invest/invest.component"; +import {OwnedRealtiesComponent} from "./owned-realties/owned-realties.component"; import {InstructionComponent} from "./instruction/instruction.component"; const routes: Routes = [ @@ -16,7 +18,7 @@ const routes: Routes = [ }, { path: 'assets', - component: HomeComponent, + component: OwnedRealtiesComponent, }, { path: 'instructions', diff --git a/dojo-front/dojo-front/src/app/app.module.ts b/dojo-front/dojo-front/src/app/app.module.ts index ce03ca6..607b5a4 100644 --- a/dojo-front/dojo-front/src/app/app.module.ts +++ b/dojo-front/dojo-front/src/app/app.module.ts @@ -10,7 +10,7 @@ import { AuthGuard } from '../shared/guard/auth.guard'; import { SharedModule } from '../shared/shared.module'; import { AppRoutingModule } from './app-routing.module'; import { AppComponent } from './app.component'; -import { AssetsComponent } from './assets/assets.component'; +import { OwnedRealtiesComponent } from './owned-realties/owned-realties.component'; import { TransactionComponent } from './home/components/transaction/transaction.component'; import { HomeComponent } from './home/home.component'; import { MoneyPipe } from './home/pipes/money.pipe'; @@ -36,7 +36,7 @@ registerLocaleData(localeFr); NavbarComponent, TransactionComponent, InvestComponent, - AssetsComponent, + OwnedRealtiesComponent, MoneyPipe, LoginComponent, RealtiesSectionComponent, diff --git a/dojo-front/dojo-front/src/app/assets/assets.component.html b/dojo-front/dojo-front/src/app/owned-realties/owned-realties.component.html similarity index 100% rename from dojo-front/dojo-front/src/app/assets/assets.component.html rename to dojo-front/dojo-front/src/app/owned-realties/owned-realties.component.html diff --git a/dojo-front/dojo-front/src/app/assets/assets.component.scss b/dojo-front/dojo-front/src/app/owned-realties/owned-realties.component.scss similarity index 100% rename from dojo-front/dojo-front/src/app/assets/assets.component.scss rename to dojo-front/dojo-front/src/app/owned-realties/owned-realties.component.scss diff --git a/dojo-front/dojo-front/src/app/assets/assets.component.spec.ts b/dojo-front/dojo-front/src/app/owned-realties/owned-realties.component.spec.ts similarity index 58% rename from dojo-front/dojo-front/src/app/assets/assets.component.spec.ts rename to dojo-front/dojo-front/src/app/owned-realties/owned-realties.component.spec.ts index f84bbc2..7360cd1 100644 --- a/dojo-front/dojo-front/src/app/assets/assets.component.spec.ts +++ b/dojo-front/dojo-front/src/app/owned-realties/owned-realties.component.spec.ts @@ -1,19 +1,19 @@ import {ComponentFixture, TestBed} from '@angular/core/testing'; -import {AssetsComponent} from './assets.component'; +import {OwnedRealtiesComponent} from './owned-realties.component'; describe('AssetsComponent', () => { - let component: AssetsComponent; - let fixture: ComponentFixture; + let component: OwnedRealtiesComponent; + let fixture: ComponentFixture; beforeEach(async () => { await TestBed.configureTestingModule({ - declarations: [AssetsComponent], + declarations: [OwnedRealtiesComponent], }).compileComponents(); }); beforeEach(() => { - fixture = TestBed.createComponent(AssetsComponent); + fixture = TestBed.createComponent(OwnedRealtiesComponent); component = fixture.componentInstance; fixture.detectChanges(); }); diff --git a/dojo-front/dojo-front/src/app/assets/assets.component.ts b/dojo-front/dojo-front/src/app/owned-realties/owned-realties.component.ts similarity index 84% rename from dojo-front/dojo-front/src/app/assets/assets.component.ts rename to dojo-front/dojo-front/src/app/owned-realties/owned-realties.component.ts index d23e6b2..9654b0a 100644 --- a/dojo-front/dojo-front/src/app/assets/assets.component.ts +++ b/dojo-front/dojo-front/src/app/owned-realties/owned-realties.component.ts @@ -4,11 +4,11 @@ import { REALTY_TYPE, Realty } from '../../shared/interface/realty'; import { UserService } from '../home/services/user.service'; @Component({ - selector: 'app-assets', - templateUrl: './assets.component.html', - styleUrls: ['./assets.component.scss'], + selector: 'app-owned-realties', + templateUrl: './owned-realties.component.html', + styleUrls: ['./owned-realties.component.scss'], }) -export class AssetsComponent implements OnInit { +export class OwnedRealtiesComponent implements OnInit { apartments: Realty[] = []; participatives: Realty[] = [];