Commit 81d57854 authored by dev0tion's avatar dev0tion

Add setup component

parent b623b067
......@@ -2,9 +2,13 @@ import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { SetupComponent } from './setup.component';
import { CreateComponent } from './create/create.component';
import { RecoverComponent } from './recover/recover.component';
const routes: Routes = [
{ path: 'setup', component: SetupComponent }
{ path: 'setup', component: SetupComponent },
{ path: 'setup/create', component: CreateComponent },
{ path: 'setup/recover', component: RecoverComponent }
];
@NgModule({
......
<h1>Welcome to setup</h1>
<create-component></create-component>
\ No newline at end of file
<h1>Welcome to Breeze. Looks like you're new here.</h1>
<p>
If you haven't used Breeze before, please create a new wallet.
</p>
<p>
Users who have previously used Breeze, can choose to recover their wallet.
</p>
<button (click)="createWallet()">Create</button>
<button (click)="recoverWallet()">Recover</button>
\ No newline at end of file
import { Component } from '@angular/core';
import { Router } from '@angular/router';
@Component({
selector: 'setup-component',
......@@ -6,5 +7,12 @@ import { Component } from '@angular/core';
styleUrls: ['./setup.component.css'],
})
export class SetupComponent {
constructor(private router: Router) {}
private createWallet() {
this.router.navigate(['/setup/create'])
}
private recoverWallet() {
this.router.navigate(['/setup/recover'])
}
}
......@@ -9,6 +9,7 @@ import { CreateComponent } from './create/create.component';
import { SharedModule } from '../shared/shared.module';
import { SetupRoutingModule } from './setup-routing.module';
import { RecoverComponent } from './recover/recover.component';
@NgModule({
imports: [
......@@ -19,7 +20,8 @@ import { SetupRoutingModule } from './setup-routing.module';
],
declarations: [
CreateComponent,
SetupComponent
SetupComponent,
RecoverComponent
],
exports: [ SetupComponent ],
providers: []
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment