-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#7 allowed networks are kovan and mainnet
- Loading branch information
Showing
9 changed files
with
71 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { MetamaskNotAllowedNetworkComponent } from './metamask-not-allowed-network.component'; |
Empty file.
5 changes: 5 additions & 0 deletions
5
src/app/metamask-not-allowed-network/metamask-not-allowed-network.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<div style="width: 100%; height: 100%; background: #393836; position: fixed; left: 0; top: 0;"> | ||
<span style="display: flex; height: 100%; justify-content: center; align-items: center;"> | ||
<span style="color: #fff; font-size: 1.5em;">Please switch your MetaMask to Kovan or Mainnet</span> | ||
</span> | ||
</div> |
25 changes: 25 additions & 0 deletions
25
src/app/metamask-not-allowed-network/metamask-not-allowed-network.component.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; | ||
|
||
import { MetamaskNotAllowedNetworkComponent } from './metamask-not-allowed-network.component'; | ||
|
||
describe('MetamaskNotAllowedNetworkComponent', () => { | ||
let component: MetamaskNotAllowedNetworkComponent; | ||
let fixture: ComponentFixture<MetamaskNotAllowedNetworkComponent>; | ||
|
||
beforeEach(async(() => { | ||
TestBed.configureTestingModule({ | ||
declarations: [ MetamaskNotAllowedNetworkComponent ] | ||
}) | ||
.compileComponents(); | ||
})); | ||
|
||
beforeEach(() => { | ||
fixture = TestBed.createComponent(MetamaskNotAllowedNetworkComponent); | ||
component = fixture.componentInstance; | ||
fixture.detectChanges(); | ||
}); | ||
|
||
it('should create', () => { | ||
expect(component).toBeTruthy(); | ||
}); | ||
}); |
15 changes: 15 additions & 0 deletions
15
src/app/metamask-not-allowed-network/metamask-not-allowed-network.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { Component, OnInit } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'app-metamask-not-allowed-network', | ||
templateUrl: './metamask-not-allowed-network.component.html', | ||
styleUrls: ['./metamask-not-allowed-network.component.css'] | ||
}) | ||
export class MetamaskNotAllowedNetworkComponent implements OnInit { | ||
|
||
constructor() { } | ||
|
||
ngOnInit() { | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters