refactor(client): rename screen

This commit is contained in:
eneller
2026-08-02 10:47:31 +02:00
parent 64fa5eb54d
commit 0aea64383a
6 changed files with 13 additions and 15 deletions

View File

@@ -1,6 +1,6 @@
import { Routes } from '@angular/router';
import { ScreenSend } from './screens/screen-send/screen-send';
import { ScreenReceive } from './screens/screen-receive/screen-receive';
import { ScreenRequest } from './screens/screen-request/screen-request';
import { ScreenProfile } from './screens/screen-profile/screen-profile';
import { ScreenLogin } from './screens/screen-login/screen-login';
import { authGuard } from './services/auth-guard';
@@ -22,7 +22,7 @@ export const routes: Routes = [
},
{
path:'receive',
component: ScreenReceive,
component: ScreenRequest,
canActivate: [authGuard],
},
{

View File

@@ -1,17 +1,17 @@
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { ScreenReceive } from './screen-receive';
import { ScreenRequest } from './screen-request';
describe('ScreenReceive', () => {
let component: ScreenReceive;
let fixture: ComponentFixture<ScreenReceive>;
let component: ScreenRequest;
let fixture: ComponentFixture<ScreenRequest>;
beforeEach(async () => {
await TestBed.configureTestingModule({
imports: [ScreenReceive],
imports: [ScreenRequest],
}).compileComponents();
fixture = TestBed.createComponent(ScreenReceive);
fixture = TestBed.createComponent(ScreenRequest);
component = fixture.componentInstance;
await fixture.whenStable();
});

View File

@@ -6,12 +6,12 @@ import { APIService } from '../../services/api';
import { Modal } from '../../components/modal/modal';
@Component({
selector: 'app-screen-receive',
selector: 'app-screen-request',
imports: [FormsModule, QrCodeComponent],
templateUrl: './screen-receive.html',
styleUrl: './screen-receive.less',
templateUrl: './screen-request.html',
styleUrl: './screen-request.less',
})
export class ScreenReceive {
export class ScreenRequest {
private modalService = inject(NgbModal);
api = inject(APIService);
@ViewChild('qrTemplate') qrTemplate !: TemplateRef<any>;

View File

@@ -3,12 +3,12 @@ import { FormsModule } from '@angular/forms';
import { APIService } from '../../services/api';
import { NotificationService } from '../../services/notification';
import QrScanner from 'qr-scanner';
import { NgbModal, NgbSlide } from '@ng-bootstrap/ng-bootstrap';
import { NgbModal } from '@ng-bootstrap/ng-bootstrap';
import { Modal } from '../../components/modal/modal';
@Component({
selector: 'app-screen-send',
imports: [FormsModule, NgbSlide],
imports: [FormsModule],
templateUrl: './screen-send.html',
styleUrl: './screen-send.less',
})
@@ -54,8 +54,6 @@ export class ScreenSend {
const modalRef = this.modalService.open(Modal);
modalRef.componentInstance.title = 'Scan a QR Code';
modalRef.componentInstance.body = this.templScanner;
}
closeScanner(){}
}