Dumb fleshout of currency listing and buy sell component

This commit is contained in:
GloriousCode
2017-12-14 17:14:43 +11:00
parent 92e8ff790b
commit cf9425a0d7
20 changed files with 255 additions and 15 deletions

View File

@@ -0,0 +1,3 @@
<p>
buy-sell-form works!
</p>

View File

@@ -0,0 +1,25 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { BuySellFormComponent } from './buy-sell-form.component';
describe('BuySellFormComponent', () => {
let component: BuySellFormComponent;
let fixture: ComponentFixture<BuySellFormComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ BuySellFormComponent ]
})
.compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(BuySellFormComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});

View File

@@ -0,0 +1,15 @@
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-buy-sell-form',
templateUrl: './buy-sell-form.component.html',
styleUrls: ['./buy-sell-form.component.scss']
})
export class BuySellFormComponent implements OnInit {
constructor() { }
ngOnInit() {
}
}

View File

@@ -1,16 +1,14 @@
<mat-tab-group>
<mat-tab>
<ng-template mat-tab-label>
The <em>best</em> pasta
BUY
</ng-template>
<h1>Best pasta restaurants</h1>
<p>...</p>
<app-buy-sell-form></app-buy-sell-form>
</mat-tab>
<mat-tab>
<ng-template mat-tab-label>
<mat-icon>thumb_down</mat-icon> The worst sushi
SELL
</ng-template>
<h1>Terrible sushi restaurants</h1>
<p>...</p>
<app-buy-sell-form></app-buy-sell-form>
</mat-tab>
</mat-tab-group>

View File

@@ -8,5 +8,7 @@
<app-selected-currency></app-selected-currency>
<div class="flex-spacer"></div>
<theme-picker></theme-picker>
&nbsp;
&nbsp;
</mat-toolbar>
</nav>

View File

@@ -1,10 +1,10 @@
<button mat-button>POLONIEX: BTC_USD </button>
<button mat-icon-button>
<button mat-button routerLink="exchange-grid" matTooltip="Change currency">POLONIEX: BTC_USD (placeholder)</button>
<button mat-icon-button routerLink="currency-list" matTooltip="View currency list">
<mat-icon>
view_list
</mat-icon>
</button>
<button mat-icon-button>
<button mat-icon-button routerLink="exchange-grid" matTooltip="View exchange grid">
<mat-icon>
view_stream
</mat-icon>