mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-06-01 23:16:51 +00:00
Dumb fleshout of currency listing and buy sell component
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
<p>
|
||||
buy-sell-form works!
|
||||
</p>
|
||||
@@ -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();
|
||||
});
|
||||
});
|
||||
15
web/src/app/shared/buy-sell-form/buy-sell-form.component.ts
Normal file
15
web/src/app/shared/buy-sell-form/buy-sell-form.component.ts
Normal 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() {
|
||||
}
|
||||
|
||||
}
|
||||
@@ -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>
|
||||
@@ -8,5 +8,7 @@
|
||||
<app-selected-currency></app-selected-currency>
|
||||
<div class="flex-spacer"></div>
|
||||
<theme-picker></theme-picker>
|
||||
|
||||
|
||||
</mat-toolbar>
|
||||
</nav>
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user