Skip to content

Commit

Permalink
refactor(dojo): rename component
Browse files Browse the repository at this point in the history
  • Loading branch information
merranleo committed May 7, 2024
1 parent a8822ae commit 1eb6429
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 12 deletions.
4 changes: 3 additions & 1 deletion dojo-front/dojo-front/src/app/app-routing.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand All @@ -16,7 +18,7 @@ const routes: Routes = [
},
{
path: 'assets',
component: HomeComponent,
component: OwnedRealtiesComponent,
},
{
path: 'instructions',
Expand Down
4 changes: 2 additions & 2 deletions dojo-front/dojo-front/src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand All @@ -36,7 +36,7 @@ registerLocaleData(localeFr);
NavbarComponent,
TransactionComponent,
InvestComponent,
AssetsComponent,
OwnedRealtiesComponent,
MoneyPipe,
LoginComponent,
RealtiesSectionComponent,
Expand Down
Original file line number Diff line number Diff line change
@@ -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<AssetsComponent>;
let component: OwnedRealtiesComponent;
let fixture: ComponentFixture<OwnedRealtiesComponent>;

beforeEach(async () => {
await TestBed.configureTestingModule({
declarations: [AssetsComponent],
declarations: [OwnedRealtiesComponent],
}).compileComponents();
});

beforeEach(() => {
fixture = TestBed.createComponent(AssetsComponent);
fixture = TestBed.createComponent(OwnedRealtiesComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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[] = [];

Expand Down

0 comments on commit 1eb6429

Please sign in to comment.