Merge pull request #5052 from mempool/mononaut/testnet3-banner

Update testnet3 banner
This commit is contained in:
wiz 2024-05-09 23:42:11 +09:00 committed by GitHub
commit 648dd5adb2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 10 additions and 1 deletions

View File

@ -1,6 +1,11 @@
<div class="container p-lg-0 pb-0" style="max-width: 100%; margin-top: 7px" *ngIf="storageService.getValue('hideWarning') !== 'hidden'"> <div class="container p-lg-0 pb-0" style="max-width: 100%; margin-top: 7px" *ngIf="storageService.getValue('hideWarning') !== 'hidden'">
<div class="alert alert-danger mb-0 text-center"> <div class="alert alert-danger mb-0 text-center">
<div class="message-container" i18n="warning-testnet">This is a test network. Coins have no value.</div> <div class="message-container">
<span i18n="warning-testnet">This is a test network. Coins have no value.</span>
@if (stateService.network === 'testnet') {
<span i18n="testnet3-deprecated">Testnet3 is deprecated, and will soon be replaced by <a href="/testnet4">Testnet4</a></span>
}
</div>
<button type="button" class="close" (click)="dismissWarning()"> <button type="button" class="close" (click)="dismissWarning()">
<span aria-hidden="true">&times;</span> <span aria-hidden="true">&times;</span>
</button> </button>

View File

@ -7,10 +7,12 @@
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: flex-start;
} }
.message-container { .message-container {
display: flex; display: flex;
flex-direction: column;
margin-left: auto; margin-left: auto;
} }

View File

@ -1,5 +1,6 @@
import { ChangeDetectionStrategy, Component } from '@angular/core'; import { ChangeDetectionStrategy, Component } from '@angular/core';
import { StorageService } from '../../../services/storage.service'; import { StorageService } from '../../../services/storage.service';
import { StateService } from '../../../services/state.service';
@Component({ @Component({
selector: 'app-testnet-alert', selector: 'app-testnet-alert',
@ -11,6 +12,7 @@ export class TestnetAlertComponent {
constructor( constructor(
public storageService: StorageService, public storageService: StorageService,
public stateService: StateService,
) { } ) { }
dismissWarning(): void { dismissWarning(): void {