Skip to content

Commit

Permalink
send funds page
Browse files Browse the repository at this point in the history
  • Loading branch information
jongbonga authored and PiDelport committed Jul 12, 2021
1 parent f62b9b3 commit 58eff92
Show file tree
Hide file tree
Showing 8 changed files with 87 additions and 1 deletion.
16 changes: 16 additions & 0 deletions web-client/src/app/views/send-funds/send-funds-routing.module.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { SendFundsPage } from './send-funds.page';

const routes: Routes = [
{
path: '',
component: SendFundsPage,
},
];

@NgModule({
imports: [RouterModule.forChild(routes)],
exports: [RouterModule],
})
export class SendFundsPageRoutingModule {}
12 changes: 12 additions & 0 deletions web-client/src/app/views/send-funds/send-funds.module.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { IonicModule } from '@ionic/angular';
import { SendFundsPageRoutingModule } from './send-funds-routing.module';
import { SendFundsPage } from './send-funds.page';

@NgModule({
imports: [CommonModule, FormsModule, IonicModule, SendFundsPageRoutingModule],
declarations: [SendFundsPage],
})
export class SendFundsPageModule {}
12 changes: 12 additions & 0 deletions web-client/src/app/views/send-funds/send-funds.page.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<ion-header>
<ion-toolbar>
<ion-buttons slot="start">
<ion-back-button></ion-back-button>
</ion-buttons>
<ion-title>Send Funds</ion-title>
</ion-toolbar>
</ion-header>

<ion-content>
<ion-button>Scan QR-Code</ion-button>
</ion-content>
Empty file.
25 changes: 25 additions & 0 deletions web-client/src/app/views/send-funds/send-funds.page.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
import { IonicModule } from '@ionic/angular';
import { SendFundsPage } from './send-funds.page';

describe('SendFundsPage', () => {
let component: SendFundsPage;
let fixture: ComponentFixture<SendFundsPage>;

beforeEach(
waitForAsync(() => {
TestBed.configureTestingModule({
declarations: [SendFundsPage],
imports: [IonicModule.forRoot()],
}).compileComponents();

fixture = TestBed.createComponent(SendFundsPage);
component = fixture.componentInstance;
fixture.detectChanges();
})
);

it('should create', () => {
expect(component).toBeTruthy();
});
});
12 changes: 12 additions & 0 deletions web-client/src/app/views/send-funds/send-funds.page.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { Component, OnInit } from '@angular/core';

@Component({
selector: 'app-send-funds',
templateUrl: './send-funds.page.html',
styleUrls: ['./send-funds.page.scss'],
})
export class SendFundsPage implements OnInit {
constructor() {}

ngOnInit() {}
}
7 changes: 7 additions & 0 deletions web-client/src/app/views/wallet/wallet-routing.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@ const routes: Routes = [
path: '',
component: WalletPage,
},
{
path: 'send-funds',
loadChildren: () =>
import('../send-funds/send-funds.module').then(
(m) => m.SendFundsPageModule
),
},
];

@NgModule({
Expand Down
4 changes: 3 additions & 1 deletion web-client/src/app/views/wallet/wallet.page.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@
</ion-toolbar>
</ion-header>

<ion-content> </ion-content>
<ion-content>
<ion-button routerLink="/wallet/send-funds"> Send Funds </ion-button>
</ion-content>

0 comments on commit 58eff92

Please sign in to comment.